Skip to content

Commit

Permalink
ignore elements with no local name
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmera committed Jun 18, 2014
1 parent 2dd417c commit 1c771d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/g2html/Loc.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static public void parseLocNode(XMLStreamReader parser, Result res, ResultStats
while(readcc.hasNext()){
int eventType = readcc.getEventType();
// add function name to the loc xml-node
if (eventType==XMLStreamConstants.START_ELEMENT && readcc.getLocalName()=="loc"){
if (eventType==XMLStreamConstants.START_ELEMENT && readcc.getLocalName() != null && readcc.getLocalName().equals("loc")){
String funName = fileStats.getNodeFun(id);
if (null==funName) {
lostAndFound.append(id+"\n");
Expand Down

0 comments on commit 1c771d7

Please sign in to comment.