export svg/pdf with no edges causes NPE
Bug #693789 reported by
rotten
on 2010-12-23
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Gephi |
Fix Released
|
Medium
|
Mathieu Bastian |
Bug Description
When I try to export a graph with several thousand nodes to PDF or SVG, but no edges I get a "java.lang.
Changed in gephi: | |
milestone: | none → 0.7beta |
importance: | Undecided → Medium |
tags: | added: preview |
rotten (rotten) wrote : | #2 |
Here is a set of data that causes the NPE. Open the GDF, and then try to export it.
Sébastien Heymann (sebastien.heymann)
on 2011-02-12
Changed in gephi: | |
status: | New → Confirmed |
Luiz Ribeiro (luizribeiro) wrote : | #3 |
This issue happens because by default, a DHNS instance isn't a directed graph, neither an undirected or mixed graph (by default, DHNS.directed = DHNS.undirected = DHNS.mixed = false). This patch fixes this issue by assuming that a graph that is not directed or undirected, is a mixed graph. I'm not sure if that's the best way to fix this issue, but it does work.
Sébastien Heymann (sebastien.heymann)
on 2011-03-12
Changed in gephi: | |
assignee: | nobody → Mathieu Bastian (mathieu.bastian) |
Mathieu Bastian (mathieu.bastian) wrote : | #4 |
Patch applied in rev 2147, thank you much Luiz!
Changed in gephi: | |
status: | Confirmed → Fix Committed |
Sébastien Heymann (sebastien.heymann)
on 2011-04-13
Changed in gephi: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi, could you share the dataset so that we can reproduce the bug?
Thanks