Exception on Delete Column if sorted by this column

Bug #719987 reported by André Panisson on 2011-02-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gephi
Fix Released
Medium
Unassigned
0.8
Fix Committed
Medium
Eduardo Ramos

Bug Description

- Open Gephi
- Open Les Miserables.gexf
- Open Data Laboratory
- Click on Modularity Class to sort by it
- Click on Delete Column, select Modularity Class and confirm the operation.

On Gephi 0.7, Data Laboratory stops working, but recovers when selecting another column for sorting (not a big problem).
On trunk, an Exception is trown: java.lang.ArrayIndexOutOfBoundsException

Eduardo Ramos (eduramiba) wrote :

This seems a bug of Netbeans Outline table, sorting is not notified when the model changes.
It does not happen with edges table.

So I could only fix this making sure the column index requested is correct.

Changed in gephi:
status: New → Fix Committed
importance: Undecided → Medium

Fix on rev 2103

tags: added: datalab
Changed in gephi:
milestone: none → 0.7beta
Changed in gephi:
status: Fix Committed → Fix Released

Received the following stack trace on a crash report. The user indicating he tried to delete a column, is this related?

java.lang.ArrayIndexOutOfBoundsException: -1
 at org.netbeans.swing.etable.ETable.createDefaultColumnsFromModel(ETable.java:674)
 at javax.swing.JTable.tableChanged(JTable.java:4374)
 at org.netbeans.swing.etable.ETable.tableChanged(ETable.java:1226)
 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:832)
 at org.netbeans.swing.outline.Outline.setModel(Outline.java:595)
 at org.gephi.desktop.datalab.NodeDataTable.refreshModel(NodeDataTable.java:248)
 at org.gephi.desktop.datalab.DataTableTopComponent$8.run(DataTableTopComponent.java:461)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:678)
 at java.awt.EventQueue.access$000(EventQueue.java:86)
 at java.awt.EventQueue$1.run(EventQueue.java:639)
 at java.awt.EventQueue$1.run(EventQueue.java:637)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:648)
 at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Changed in gephi:
assignee: nobody → Eduardo Ramos (eduramiba)
assignee: Eduardo Ramos (eduramiba) → nobody
Eduardo Ramos (eduramiba) wrote :

Yes this was related to the same bug, thanks for reporting.
I only checked for upper bound.
I could reproduce it and now does not happen to me.

Great! Don't forget to add a comment with the revision number: "Fix on rev xxx" so that it is easy to checkout the code before a modification.

Eduardo Ramos (eduramiba) wrote :

Sure!
Fix on rev 2212

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers