Changeset 18608


Ignore:
Timestamp:
2009-03-02T15:09:09+13:00 (12 years ago)
Author:
kjdon
Message:

return null if we are asking for an index that does not exist, in getElementAt. HOpe this doesn't stuff up anything else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/DOMProxyListModel.java

    r14039 r18608  
    216216        // Retrieve the required element
    217217        Element element = (Element) children.item (index);
     218    if (element == null) {
     219      return null;
     220    }
    218221        DebugStream.println ("Element at index " + index + " not in cache: " + element);
    219222       
Note: See TracChangeset for help on using the changeset viewer.