From 801ad75602ce2dd67ee84b71f18fc4444b08652a Mon Sep 17 00:00:00 2001 From: TomXin <766781886@qq.com> Date: Fri, 3 Feb 2023 10:35:45 +0800 Subject: [PATCH] Fix issue #80 --- src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java b/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java index 9382a27..385f597 100644 --- a/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java +++ b/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java @@ -624,14 +624,14 @@ public String getType(int index) public String getType(String qName) { int ix = getIndex(qName); - return (ix < 0) ? null : _scanner.getAttrType(ix); + return this.getType(ix); } @Override public String getType(String uri, String localName) { int ix = getIndex(uri, localName); - return (ix < 0) ? null : _scanner.getAttrType(ix); + return this.getType(ix); } @Override @@ -655,14 +655,14 @@ public String getValue(int index) public String getValue(String qName) { int ix = getIndex(qName); - return (ix < 0) ? null : _attrCollector.getValue(ix); + return this.getValue(ix); } @Override public String getValue(String uri, String localName) { int ix = getIndex(uri, localName); - return (ix < 0) ? null : _attrCollector.getValue(ix); + return this.getValue(ix); } /*