[2.0] crash when undoing the joining of two shapes (ArrayIndexOutOfBoundsException)

Bug #292090 reported by arno_b
2
Affects Status Importance Assigned to Milestone
LaTeXDraw
Fix Released
Critical
arno_b

Bug Description

from https://sourceforge.net/tracker2/?func=detail&atid=800126&aid=2213650&group_id=156523

When I try to group a circle and a line and then try to undo this
operation, I get the errors written in the file I post.

java.lang.ArrayIndexOutOfBoundsException
   at java.lang.System.arraycopy(System.java:-2)
   at java.util.Vector.insertElementAt(Vector.java:555)
   at java.util.Vector.add(Vector.java:760)
   at latexDraw.util.UndoRedoManager.undo(UndoRedoManager.java:483)
   at latexDraw.ui.listeners.MenusListener.actionPerformed(MenusListener.java:163)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:337)
   at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:1189)
   at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
   at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
   at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:670)
   at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:678)
   at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:678)
   at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:649)
   at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
   at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:254)
   at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2926)
   at javax.swing.SwingUtilities.processKeyBindings(SwingUtilities.java:1551)
   at javax.swing.UIManager$2.postProcessKeyEvent(UIManager.java:1450)
   at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:707)
   at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
   at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
   at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
   at java.awt.Component.dispatchEventImpl(Component.java:4285)
   at java.awt.Container.dispatchEventImpl(Container.java:2116)
   at java.awt.Window.dispatchEventImpl(Window.java:2440)
   at java.awt.Component.dispatchEvent(Component.java:4243)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

arno_b (arno.b)
Changed in latexdraw:
assignee: nobody → arno-blouin
importance: Undecided → Critical
milestone: none → 2.0.2
status: New → Confirmed
arno_b (arno.b)
Changed in latexdraw:
status: Confirmed → Fix Committed
arno_b (arno.b)
Changed in latexdraw:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.