Changeset 17353

Show
Ignore:
Timestamp:
23.09.2008 13:51:15 (11 years ago)
Author:
ak19
Message:

Fixed NPE that is thrown when the old_library_url was null

Files:
1 modified

Legend:

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

    r16990 r17353  
    663663        Configuration.setPreviewCommand(program_str); 
    664664 
    665  
    666         String old_library_url = Configuration.library_url.toString(); 
     665        String old_library_url = (Configuration.library_url == null) ? null : Configuration.library_url.toString(); 
    667666        String library_url_string = library_path_field.getText(); 
    668         if(!old_library_url.equals(library_url_string)) { 
     667        if(old_library_url != null && !old_library_url.equals(library_url_string)) { 
    669668 
    670669        // If the server is remote and the library path's been changed, then GLI client needs restart