Changeset 29097

Show
Ignore:
Timestamp:
12.06.2014 12:20:16 (5 years ago)
Author:
kjdon
Message:

not sure if we need this catch for collection undefined

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/import.pl

    r28703 r29097  
    192192    } 
    193193  } 
    194  
     194  
    195195  my $inexport; 
    196196  if (defined $inexport_subclass) 
     
    200200    $inexport = new $inexport_subclass("import",\@ARGV,$options); 
    201201  } 
     202  
    202203  # We don't have a overridden inexport, or the above command failed somehow 
    203204  # so load the base inexport class 
     
    208209 
    209210  my $collection = $inexport->get_collection(); 
    210  
     211   
    211212  if (defined $collection) 
    212213  { 
     
    219220 
    220221    $inexport->generate_statistics($pluginfo); 
    221   } 
    222  
     222  } else { 
     223      # can this actually happen, or will we have died already before getting here 
     224      print STDERR "collection not defined\n"; 
     225      $inexport->deinit(); 
     226      exit(-1); 
     227  } 
    223228  $inexport->deinit(); 
    224229}