Changeset 11762


Ignore:
Timestamp:
2006-05-03T13:51:02+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fixed a bug where filtering the workspace tree before opening the "Local Filespace" node would cause an exception on Unix.

File:
1 edited

Legend:

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

    r11385 r11762  
    5959    public int getChildCount()
    6060    {
    61     int size = 0;
    62 
    63     // We don't map if this is a system root, or we risk the 50,000 Disk not found error messages of death
    64     if (isFileSystemRoot()) {
    65         size = 1;  // Size is always non-zero for a system root
    66     }
    67     else {
    68         map();
    69     }
     61    map();
    7062
    7163    // Use the number of (filtered) child nodes
    7264    if (child_nodes != null) {
    73         size = child_nodes.size();
    74     }
    75 
    76     return size;
     65        return child_nodes.size();
     66    }
     67
     68    return 0;
    7769    }
    7870
Note: See TracChangeset for help on using the changeset viewer.