New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
2 participants
@sheymann
Copy link
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)

@ghost ghost assigned eduramiba Nov 4, 2011

eduramiba added a commit that referenced this issue Nov 6, 2011

@eduramiba

This comment has been minimized.

Copy link
Member

eduramiba commented Nov 6, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment