NullPointerException on exporting dynamic GEXF file with Toolkit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gephi |
Fix Released
|
Undecided
|
Sébastien Heymann | ||
Toolkit |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I tried to export a GEXF file to check things but it crashed, trying to write:
<attributes class="node" mode="dynamic">
<attribute id="time_interval" title="Time Interval"
With the following exception:
java.lang.
at org.gephi.
at org.gephi.
at org.gephi.
at org.gephi.
at org.gephi.
at org.gephi.
The problem is raised at at the line:
AttributeType staticType = TypeConvertor.
When col.getType() return TimeInterval, which is not a type known by TypeConvertor.
But it seems the problem is inside ExporterGEXF.
if (exportDynamic && col.getType(
dynamicCols
}
"col.getIndex() == PropertiesColum
How to reproduce using the Toolkit:
//Init a project - and therefore a workspace
ProjectController pc = Lookup.
pc.newProject();
Workspace workspace = pc.getCurrentWo
//Get controllers and models
ImportController importController = Lookup.
//Import file
Container container;
try {
File file = new File("1.csv");
container = importControlle
container.
container.
} catch (Exception ex) {
ex.
return;
}
//Initialize the DynamicProcessor - which will append the container to the workspace
DynamicProcessor dynamicProcessor = new DynamicProcessor();
dynamicProcesso
dynamicProcesso
//Set date for this file
dynamicProcesso
//Process the container using the DynamicProcessor
importControlle
//Export full graph
ExportController ec = Lookup.
try {
ec.
} catch (IOException ex) {
ex.
return;
}
Changed in gephi: | |
milestone: | none → 0.7beta |
assignee: | nobody → Cezary Bartosiak (cezary-bartosiak) |
description: | updated |
tags: | added: export |
Changed in gephi: | |
assignee: | Cezary Bartosiak (cezary-bartosiak) → Sébastien Heymann (sebastien.heymann) |
status: | New → Fix Committed |
Changed in gephi: | |
status: | Fix Committed → Fix Released |