Skip to content

Commit 780da9a

Browse files
committed
unknown files
1 parent 88855cb commit 780da9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/g2html/Loc.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ static public void parseLocNode(XMLStreamReader parser, Result res, ResultStats
4848
int eventType = readcc.getEventType();
4949
// add function name to the loc xml-node
5050
if (eventType==XMLStreamConstants.START_ELEMENT && readcc.getLocalName()=="loc"){
51-
xmlOutStream.writeAttribute("fun",fileStats.getNodeFun(id));
51+
String funName = fileStats.getNodeFun(id);
52+
if (null==funName)
53+
funName = "unknown";
54+
xmlOutStream.writeAttribute("fun",funName);
5255
// stop at the conclusion of the loc xml-node
5356
} else if (eventType==XMLStreamConstants.END_ELEMENT && readcc.getLocalName()=="loc"){
5457
break;

0 commit comments

Comments
 (0)