gephi/gephi — Issue #454: datalab: exception on hiding a column used to sort the table
Author: sheymann
Created: 2011-11-04 18:10:27+00:00
State: open

Way to reproduce:
1. Sort the node table on labels.
2. Hide the label column.

java.lang.ArrayIndexOutOfBoundsException: -1
at org.netbeans.swing.etable.ETable.createDefaultColumnsFromModel(ETable.java:680)
at javax.swing.JTable.tableChanged(JTable.java:4374)
at org.netbeans.swing.etable.ETable.tableChanged(ETable.java:1232)
at org.netbeans.swing.outline.Outline.tableChanged(Outline.java:879)
at javax.swing.JTable.setModel(JTable.java:3676)
at org.netbeans.swing.etable.ETable.setModel(ETable.java:838)
at org.netbeans.swing.outline.Outline.setModel(Outline.java:595)
at org.gephi.desktop.datalab.NodeDataTable.refreshModel(NodeDataTable.java:271)
[catch] at org.gephi.desktop.datalab.DataTableTopComponent$8.run(DataTableTopComponent.java:485)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)