提交 54d581a9 编写于 作者: E Eduardo Ramos

Fix #1426 Error saving any dynamic network in gexf format

上级 bca0d8c9
......@@ -382,7 +382,8 @@ public class ExporterGEXF implements GraphExporter, CharacterExporter, LongTask
if (timeMap != null) {
for (Interval interval : timeMap.toKeysArray()) {
if (!exportVisible || interval.compareTo(visibleInterval) == 0) {
Object value = timeMap.get(interval, null);
final Object defaultValue = null;
final Object value = timeMap.get(interval, defaultValue);
if (value != null) {
xmlWriter.writeStartElement(ATTVALUE);
xmlWriter.writeAttribute(ATTVALUE_FOR, column.getId());
......@@ -405,7 +406,8 @@ public class ExporterGEXF implements GraphExporter, CharacterExporter, LongTask
if (timeMap != null) {
for (Double timestamp : timeMap.toKeysArray()) {
if (!exportVisible || visibleInterval.compareTo(timestamp) == 0) {
Object value = timeMap.get(timestamp, null);
final Object defaultValue = null;
final Object value = timeMap.get(timestamp, defaultValue);
if (value != null) {
xmlWriter.writeStartElement(ATTVALUE);
xmlWriter.writeAttribute(ATTVALUE_FOR, column.getId());
......
Manifest-Version: 1.0
AutoUpdate-Essential-Module: true
OpenIDE-Module-Localizing-Bundle: org/gephi/io/exporter/plugin/Bundle.properties
OpenIDE-Module-Specification-Version: 0.9.1.1
OpenIDE-Module-Specification-Version: 0.9.1.2
OpenIDE-Module-Display-Category: Plugin
OpenIDE-Module-Name: Export Plugin
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册