Skip to content

Commit 1c771d7

Browse files
committed
ignore elements with no local name
1 parent 2dd417c commit 1c771d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/g2html/Loc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static public void parseLocNode(XMLStreamReader parser, Result res, ResultStats
4848
while(readcc.hasNext()){
4949
int eventType = readcc.getEventType();
5050
// add function name to the loc xml-node
51-
if (eventType==XMLStreamConstants.START_ELEMENT && readcc.getLocalName()=="loc"){
51+
if (eventType==XMLStreamConstants.START_ELEMENT && readcc.getLocalName() != null && readcc.getLocalName().equals("loc")){
5252
String funName = fileStats.getNodeFun(id);
5353
if (null==funName) {
5454
lostAndFound.append(id+"\n");

0 commit comments

Comments
 (0)