-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
I have an entity with no attributes. But getValue("SomeKey") is returning a value from a previous element.
I think the problem is that these lines
aalto-xml/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java
Lines 654 to 666 in 0820590
| @Override | |
| public String getValue(String qName) | |
| { | |
| int ix = getIndex(qName); | |
| return (ix < 0) ? null : _attrCollector.getValue(ix); | |
| } | |
| @Override | |
| public String getValue(String uri, String localName) | |
| { | |
| int ix = getIndex(uri, localName); | |
| return (ix < 0) ? null : _attrCollector.getValue(ix); | |
| } |
Are missing the || index >= _attrCount that this has
aalto-xml/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java
Lines 647 to 652 in 0820590
| @Override | |
| public String getValue(int index) | |
| { | |
| return (index < 0 || index >= _attrCount) ? null : | |
| _attrCollector.getValue(index); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels