Changeset 28397 for gs3-extensions

Show
Ignore:
Timestamp:
14.10.2013 10:02:01 (5 years ago)
Author:
davidb
Message:

Need to test field is defined before using it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/audioDB/trunk/src/perllib/plugins/AudioDBPlugin.pm

    r26288 r28397  
    231231    # Opportunity to use jAudioMinerExtractor if dynamically and loaded 
    232232    # 
    233     if ($self->{'retrieve_mir_metadata'} eq "true") { 
     233    my $retrieve_mir_metadata = $self->{'retrieve_mir_metadata'}; 
     234 
     235    if (defined $retrieve_mir_metadata && $retrieve_mir_metadata eq "true") { 
    234236    my $top_section = $doc_obj->get_top_section(); 
    235237