Skip to content

Commit

Permalink
Fix graphml parsing (NumberFormatException)
Browse files Browse the repository at this point in the history
Fix NumberFormatException when reading characters. Pass getData() instead of the Characters event.
See graphstream#363
  • Loading branch information
robinschmid authored Nov 13, 2021
1 parent 18d5f00 commit ccb972c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/graphstream/stream/file/FileSourceXML.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ protected String __characters() throws IOException, XMLStreamException {
e = getNextEvent();

while (e.getEventType() == XMLEvent.CHARACTERS) {
buffer.append(e.asCharacters());
buffer.append(e.asCharacters().getData());
e = getNextEvent();
}

Expand Down

0 comments on commit ccb972c

Please sign in to comment.