Project

Profile

Help

Revision 9272972d

Added by Michael Kay over 12 years ago

Fix bug 2716905 - PullToStax starts in incorrect state

View differences:

latest9.1/bj/net/sf/saxon/pull/PullToStax.java
30 30
    private NamePool namePool;
31 31
    private boolean previousAtomic;
32 32
    private FastStringBuffer currentTextNode = new FastStringBuffer(100);
33
    private int currentStaxEvent;
33
    private int currentStaxEvent = XMLStreamReader.START_DOCUMENT;
34 34
    private XPathException pendingException = null;
35 35

  
36 36
    /**
......
237 237
                break;
238 238
            case PullProvider.START_DOCUMENT:
239 239
                currentStaxEvent = XMLStreamConstants.START_DOCUMENT;
240
                break;
240
                return next();
241 241
            case PullProvider.END_DOCUMENT:
242 242
                currentStaxEvent = XMLStreamConstants.END_DOCUMENT;
243 243
                break;

Also available in: Unified diff