Changeset 16307

Show
Ignore:
Timestamp:
07.07.2008 11:18:10 (11 years ago)
Author:
ak19
Message:

Corrected bug. Configuring a plugin used to throw an exception when the plugin's arguments were 0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java

    r12749 r16307  
    211211    int current_mode = Configuration.getMode(); 
    212212 
    213     String previous_owner = ((Argument) arguments.get(0)).getOwner(); 
    214     addHeader(previous_owner, colour_two); 
     213    String previous_owner = ""; 
     214    if(arguments.size() > 0) { 
     215        previous_owner = ((Argument) arguments.get(0)).getOwner(); 
     216        addHeader(previous_owner, colour_two); 
     217    } 
    215218 
    216219    for(int i = 0; i < arguments.size(); i++) {