Changeset 4802


Ignore:
Timestamp:
2003-06-25T14:01:44+12:00 (21 years ago)
Author:
jmt12
Message:

bug#2030156: Pressing [Enter] will no longer cause NPE because the FileNode selected had no file

File:
1 edited

Legend:

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

    r4675 r4802  
    679679        if(path != null) {
    680680            File file = ((FileNode)path.getLastPathComponent()).getFile();
    681             if(file.isFile()) {
     681            if(file != null && file.isFile()) {
    682682            Gatherer.self.spawnApplication(file);
     683            }
     684            else {
     685            if(!tree.isExpanded(path)) {
     686                tree.expandPath(path);
     687            }
     688            else {
     689                tree.collapsePath(path);
     690            }
    683691            }
    684692        }
Note: See TracChangeset for help on using the changeset viewer.