Changeset 8146


Ignore:
Timestamp:
2004-09-24T11:42:28+12:00 (20 years ago)
Author:
mdewsnip
Message:

Added null pointer check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/BasicCollectionConfiguration.java

    r7989 r8146  
    8181            }
    8282            CommandTokenizer tokenizer = new CommandTokenizer(command, br);
    83             String command_type_str = tokenizer.nextToken().toLowerCase();
     83            String command_type_str = tokenizer.nextToken();
     84            if (command_type_str != null) {
     85                command_type_str = command_type_str.toLowerCase();
     86            }
     87
    8488            if(command_type_str == null) {
    8589                // Bad command. Do nothing
Note: See TracChangeset for help on using the changeset viewer.