GraphStream Users

Archives de la liste Aide


FileSinkGEFX NullPointerException


Chronologique Discussions 
  • From: <dhmhsl AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: FileSinkGEFX NullPointerException
  • Date: Sun, 13 Aug 2017 21:51:25 +0200 (CEST)

Hello,
I have the following code:

FileSinkBase fileOutput;
[...]
fileOutput = new FileSinkGEXF();
mGraph.getGraph().addSink(fileOutput);
fileOutput.begin(oFilename);
[...] // Populate graph
fileOutput.end();
fileOutput.flush();

The graph is created by: graph = new DefaultGraph(name, false, true);

The result of the execution (Not always) is the following:
Exception in thread "pool-1-thread-7" java.lang.NullPointerException
at
org.graphstream.stream.file.FileSinkGEXF$GEXFAttributeMap.getID(FileSinkGEXF.java:523)
at
org.graphstream.stream.file.FileSinkGEXF$GEXFAttributeMap.check(FileSinkGEXF.java:498)
at
org.graphstream.stream.file.FileSinkGEXF$GEXFAttributeMap.<init>(FileSinkGEXF.java:478)
at
org.graphstream.stream.file.FileSinkGEXF.exportGraphSpells(FileSinkGEXF.java:242)
at
org.graphstream.stream.file.FileSinkGEXF.outputEndOfFile(FileSinkGEXF.java:113)
at org.graphstream.stream.file.FileSinkBase.end(FileSinkBase.java:202)

The same portion of code works perfect with FileSinkDGS() and
FileSinkDOT(true);

any ideas? thank you



Archives gérées par MHonArc 2.6.16.

Top of page