#3776 ArrayIndexOutOfBoundsException with Move Down File Colors

closed-fixed
None
5
2014-08-02
2013-01-05
Bao N. Nguyen
No

The following steps will print to the terminal a java.lang.ArrayIndexOutOfBoundsException in JEdit 5.0.0

1. Start jEdit with the -log=1 on to enable log
2. Open the Global Options window
3. Select item File System Browser/Colors
4. Click Move Down button (the green arrow button on the right)

Exception trace:
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: java.lang.ArrayIndexOutOfBoundsException: -1
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.ArrayList.elementData(ArrayList.java:338)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.ArrayList.get(ArrayList.java:351)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.options.BrowserColorsModel.moveDown(BrowserColorsOptionPane.java:255)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.options.BrowserColorsOptionPane$ActionHandler.actionPerformed(BrowserColorsOptionPane.java:180)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.processMouseEvent(Component.java:6389)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.JComponent.processMouseEvent(JComponent.java:3268)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.processEvent(Component.java:6154)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Container.processEvent(Container.java:2045)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.dispatchEventImpl(Component.java:4750)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Container.dispatchEventImpl(Container.java:2103)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.dispatchEvent(Component.java:4576)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Container.dispatchEventImpl(Container.java:2089)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Window.dispatchEventImpl(Window.java:2518)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.dispatchEvent(Component.java:4576)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.access$400(EventQueue.java:96)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$2.run(EventQueue.java:631)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$2.run(EventQueue.java:629)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessController.doPrivileged(Native Method)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$3.run(EventQueue.java:645)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$3.run(EventQueue.java:643)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessController.doPrivileged(Native Method)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Dialog$1.run(Dialog.java:1073)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Dialog$3.run(Dialog.java:1127)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessController.doPrivileged(Native Method)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Dialog.show(Dialog.java:1125)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.show(Component.java:1672)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.setVisible(Component.java:1624)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Window.setVisible(Window.java:882)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Dialog.setVisible(Dialog.java:1012)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.jedit.options.CombinedOptions._init(CombinedOptions.java:84)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.jedit.options.CombinedOptions.<init>(CombinedOptions.java:64)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.jedit.options.CombinedOptions.combinedOptions(CombinedOptions.java:56)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.lang.reflect.Method.invoke(Method.java:616)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BSHReturnStatement.eval(BSHReturnStatement.java:48)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:431)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:342)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3386)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3368)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:212)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.processMouseEvent(Component.java:6389)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at javax.swing.JComponent.processMouseEvent(JComponent.java:3268)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.processEvent(Component.java:6154)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Container.processEvent(Container.java:2045)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.dispatchEventImpl(Component.java:4750)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Container.dispatchEventImpl(Container.java:2103)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.dispatchEvent(Component.java:4576)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Container.dispatchEventImpl(Container.java:2089)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Window.dispatchEventImpl(Window.java:2518)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.Component.dispatchEvent(Component.java:4576)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.access$400(EventQueue.java:96)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$2.run(EventQueue.java:631)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$2.run(EventQueue.java:629)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessController.doPrivileged(Native Method)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$3.run(EventQueue.java:645)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$3.run(EventQueue.java:643)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessController.doPrivileged(Native Method)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
5:08:06 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Discussion

    • assigned_to: nobody --> kpouer
    • status: open --> closed-fixed
     
  • Fixed in rev 22665