#18 Remove duplicates: error

head
closed
nobody
5
2014-10-24
2011-09-17
No

When I select the menu item "Remove duplicates", duplicates - if any are removed - but both a dialog with "xxx duplicates removed" as a dialog with "remove duplicates working" (or something like that) stay on the screen and don't go away by hitting/clicking the OK button. When I close these dialogs by force I get the following error message:

The error was:
Index: 1722, Size: 1665
The exception text is:
java.lang.IndexOutOfBoundsException: Index: 1722, Size: 1665
at java.util.ArrayList.rangeCheck(ArrayList.java:571)
at java.util.ArrayList.get(ArrayList.java:349)
at core.LibraryFrame$PatchListModel.getPatchAt(LibraryFrame.java:285)
at core.LibraryFrame.enableActions(LibraryFrame.java:88)
at core.AbstractLibraryFrame$2.tableChanged(AbstractLibraryFrame.java:157)
at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:297)
at javax.swing.table.AbstractTableModel.fireTableDataChanged(AbstractTableModel.java:199)
at core.AbstractLibraryFrame.changed(AbstractLibraryFrame.java:261)
at core.LibraryFrame.deleteDuplicates(LibraryFrame.java:123)
at core.Actions$DeleteDuplicatesAction.actionPerformed(Actions.java:1305)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
at java.awt.Component.processMouseEvent(Component.java:6268)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6033)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4629)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2517)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Discussion

  • screendump: removing duplicates problem

     
    Attachments
  • frankie
    frankie
    2011-09-17

    good find.

    fixed it, code is in SVN.

     
  • frankie
    frankie
    2011-09-17

    • status: open --> open-fixed
     
  • pascalc
    pascalc
    2014-02-17

    • status: open-fixed --> closed
    • Group: --> CVS_head