Skip to content

Commit

Permalink
unknown files
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmera committed Apr 2, 2014
1 parent 88855cb commit 780da9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/g2html/Loc.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ static public void parseLocNode(XMLStreamReader parser, Result res, ResultStats
int eventType = readcc.getEventType();
// add function name to the loc xml-node
if (eventType==XMLStreamConstants.START_ELEMENT && readcc.getLocalName()=="loc"){
xmlOutStream.writeAttribute("fun",fileStats.getNodeFun(id));
String funName = fileStats.getNodeFun(id);
if (null==funName)
funName = "unknown";
xmlOutStream.writeAttribute("fun",funName);
// stop at the conclusion of the loc xml-node
} else if (eventType==XMLStreamConstants.END_ELEMENT && readcc.getLocalName()=="loc"){
break;
Expand Down

0 comments on commit 780da9a

Please sign in to comment.