Project

Profile

Help

Revision b035571a

Added by Michael Kay over 12 years ago

Fix bug 2723114 - pull from tinytree node crashes JAXB Unmarshaller

View differences:

latest9.1/bj/net/sf/saxon/tinytree/TinyTreeEventIterator.java
88 88

  
89 89
        boolean atEnd = (thisDepth <= tree.depth[startNodeNr] && currentNodeNr != startNodeNr);
90 90

  
91
        if (atEnd && pendingEndEvents >= 1) {
91
        if (atEnd && pendingEndEvents == 1) {
92 92
            pendingEndEvents--;
93 93
            startNodeNr = -1;
94 94
            if (startAtDocument) {

Also available in: Unified diff