Changeset 1990


Ignore:
Timestamp:
01/02/07 13:40:22 (13 years ago)
Author:
melissa
Message:

Fixed bug in findNode that caused it to incorrectly return null values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/OMEXMLMetadataStore.java

    r1973 r1990  
    740740    Element rel = root.getDOMElement(); 
    741741    Vector elements = DOMUtil.findElementList(name, rel.getOwnerDocument()); 
    742     if (elements == null || i <= elements.size()) return null; 
     742    if (elements == null || i >= elements.size()) return null; 
    743743    Element el = (Element) elements.get(i); 
    744744    return OMEXMLNode.createNode(el); 
Note: See TracChangeset for help on using the changeset viewer.