Changeset 9692


Ignore:
Timestamp:
2005-04-15T10:53:29+12:00 (19 years ago)
Author:
kjdon
Message:

Chi had a NPE at this line (220), so I chnaged it to check whether the selected item form the combobox was not null before converting to a string. don't know if this was the problem cos we can't reproduce it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/ArgumentControl.java

    r9159 r9692  
    218218    }
    219219    else if(value_control instanceof JComboBox) {
    220         value = (((JComboBox)value_control).getSelectedItem()).toString();
     220        Object selected_item = ((JComboBox)value_control).getSelectedItem();
     221        if (selected_item != null) {
     222        value = selected_item.toString();
     223        }
    221224    }
    222225    return value;
Note: See TracChangeset for help on using the changeset viewer.