Ignore:
Timestamp:
2001-04-04T15:01:52+12:00 (23 years ago)
Author:
say1
Message:

changed JAVACOPTIONS. log files now written to home directory. error catching in CSModel. ChangeLog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/CSModel.java

    r2262 r2278  
    166166            String longCollectionName = "";
    167167            Set n = nzdl.getMetaData(collectionName, "collection", "collectionname");
    168             if (n.size() == 1)
    169                 longCollectionName = (String) n.toArray()[0];
    170             else
    171                 longCollectionName = collectionName + " has more than 1 collectionname";
    172             collectionNameMap.put(collectionName,longCollectionName );
    173             System.err.println("Adding " + collectionName + " to collection list...");
    174             } // end if
    175             else {
    176             System.err.println("Collection " + collectionName + " getBuildDate() returned 0");
    177             } // end else
     168            if (n != null) {
     169              if (n.size() == 1)
     170            longCollectionName = (String) n.toArray()[0];
     171              else
     172            longCollectionName = collectionName + " has more than 1 collectionname";
     173              collectionNameMap.put(collectionName,longCollectionName );
     174              System.err.println("Adding " + collectionName + " to collection list...");
     175            }
     176          } // end if
     177          else {
     178            System.err.println("Collection " + collectionName + " getBuildDate() returned 0");
     179          } // end else
    178180        } // end while 
    179181        setCurrentCollection(getFirstCollection()); //assume at least one collection
Note: See TracChangeset for help on using the changeset viewer.