Changeset 10323


Ignore:
Timestamp:
2005-07-27T11:54:29+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now returns null if an empty command is specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileAssociationManager.java

    r9657 r10323  
    122122        }
    123123    }
    124    
     124
    125125    // if we still haven't found something, prompt the user
    126126    if (command == null) {
     
    199199            dialog = null;
    200200        }
     201
    201202        // Hopefully by now we have a command, or else we're never going to get one. Add the association.
    202         if(command != null) {
     203        if (command != null && !command.equals("")) {
    203204            // If no previous entry existed create one.
    204205            if(entry == null) {
     
    212213        }
    213214        }
    214         if(command != null) {
    215 
     215
     216        if (command != null && !command.equals("")) {
    216217        // Make the command into a string []       
    217218        commands = command.split(" ");
     
    228229            commands[i] = commands[i].replaceAll(FILENAME_ARG, filename);
    229230        }
    230 
    231231        }
    232232       
Note: See TracChangeset for help on using the changeset viewer.