datalab: exception on hiding a column used to sort the table #454

Closed
sheymann opened this Issue Nov 4, 2011 · 1 comment

Projects

None yet

2 participants

@sheymann
Member
sheymann commented Nov 4, 2011

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)

@eduramiba eduramiba was assigned Nov 4, 2011
@eduramiba eduramiba added a commit that referenced this issue Nov 6, 2011
@eduramiba eduramiba Fix Issue #454 ae34e5c
@eduramiba
Member

Fixed on commit ae34e5c

Again, a Netbeans Outline problem. It throws an exception when you update the table model to other not containing that old sorted column. So this happened if a sorted column was deleted too.
I had to clear sorting when refreshing the model.

@eduramiba eduramiba closed this Nov 6, 2011
@eduramiba eduramiba was unassigned by mbastian Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment