View Issue Details

IDProjectCategoryView StatusLast Update
0000007VANTED 2.6.4[VANTED] Applicationpublic2019-02-01 08:19
Reportertobias.nusserAssigned Todimitar.garkov 
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version10
Product Version[VANTED] 2.6.3 
Target Version[VANTED] 2.6.4Fixed in Version[VANTED] 2.6.5 
Summary0000007: Export calculated data fails
Description

If you have a graph/network loaded and want to export attributes via the "Export" function and you choose to export every attribute in the list you either get an error (screenshot below) or nothing happens after confirming the selection.

Steps To Reproduce

File -> New -> Random Network -> Generate Erdos-Renyi random network -> OK
File -> Export -> Calculated Data -> Select all Attributes -> OK

Tagsexport, nullpointerexception
Attach Tags
Traceability Screenshot provided

Activities

tobias.nusser

tobias.nusser

2017-05-06 12:27

updater  

export_failure_2.PNG (105,495 bytes)
export_failure_2.PNG (105,495 bytes)
dimitar.garkov

dimitar.garkov

2017-05-07 22:21

developer   ~0000004

Last edited: 2017-05-07 22:22

View 2 revisions

And the respective stacktrace:

java.lang.NullPointerException
at de.ipk_gatersleben.ag_nw.graffiti.plugins.misc.invert_selection.ExportDataTableAlgorithm$NodePair.hashCode(ExportDataTableAlgorithm.java:176)
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.put(HashMap.java:611)
at java.util.HashSet.add(HashSet.java:219)
at de.ipk_gatersleben.ag_nw.graffiti.plugins.misc.invert_selection.ExportDataTableAlgorithm.execute(ExportDataTableAlgorithm.java:90)
at org.graffiti.editor.GravistoService.multiGraphExecution(GravistoService.java:682)
at org.graffiti.editor.GravistoService.runAlgorithm(GravistoService.java:554)
at org.graffiti.editor.GravistoService.runAlgorithm(GravistoService.java:476)
at org.graffiti.editor.actions.RunAlgorithm.actionPerformed(RunAlgorithm.java:123)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.graffiti.editor.GlobalHotkeyManager.dispatchEvent(GlobalHotkeyManager.java:65)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

dimitar.garkov

dimitar.garkov

2017-05-07 22:33

developer   ~0000005

Being able to reproduce. The reason is that some of the attributes are not set, therefore - null. A proper highlighting, e.g. not being enabled, should not permit the user to select any null values to export.

Issue History

Date Modified Username Field Change
2017-05-06 12:27 tobias.nusser New Issue
2017-05-06 12:27 tobias.nusser File Added: export_failure_2.PNG
2017-05-07 22:21 dimitar.garkov Note Added: 0000004
2017-05-07 22:22 dimitar.garkov Note Edited: 0000004 View Revisions
2017-05-07 22:33 dimitar.garkov Assigned To => dimitar.garkov
2017-05-07 22:33 dimitar.garkov Status new => assigned
2017-05-07 22:33 dimitar.garkov Note Added: 0000005
2017-05-07 22:34 dimitar.garkov Tag Attached: nullpointerexception
2017-05-07 22:34 dimitar.garkov Tag Attached: export
2017-05-08 01:32 administrator Product Version => 2.6.3
2017-05-08 01:32 administrator Target Version => 2.6.4
2019-02-01 08:02 administrator Category Core => Application
2019-02-01 08:19 dimitar.garkov Status assigned => resolved
2019-02-01 08:19 dimitar.garkov Resolution open => fixed
2019-02-01 08:19 dimitar.garkov Fixed in Version => 2.6.5