Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358601

Summary: IndexOutOfBoundsException thrown in BendpointEditPolicy
Product: [Tools] GEF Reporter: <h1055071>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description CLA 2011-09-22 10:37:25 EDT
My RCP app is using GEF's Bendpoints. Occasionally an IndexOutOfBoundsException is thrown when the user is moving bendpoints in a GEF editor. Unfortunately I cannot create the steps to reproduce this, but it does happen frequently.

The log:

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
	at org.eclipse.draw2d.geometry.PointList.getPoint(PointList.java:214)
	at org.eclipse.gef.editpolicies.BendpointEditPolicy.setReferencePoints(BendpointEditPolicy.java:313)
	at org.eclipse.gef.editpolicies.BendpointEditPolicy.showMoveBendpointFeedback(BendpointEditPolicy.java:372)
	at org.eclipse.gef.editpolicies.BendpointEditPolicy.showSourceFeedback(BendpointEditPolicy.java:406)
	at org.eclipse.gef.editparts.AbstractEditPart.showSourceFeedback(AbstractEditPart.java:1046)
	at org.eclipse.gef.tools.SimpleDragTracker.showSourceFeedback(SimpleDragTracker.java:239)
	at org.eclipse.gef.tools.SimpleDragTracker.handleDragInProgress(SimpleDragTracker.java:141)
	at org.eclipse.gef.tools.AbstractTool.mouseDrag(AbstractTool.java:1115)
	at org.eclipse.gef.tools.SelectionTool.mouseDrag(SelectionTool.java:536)
	at org.eclipse.gef.EditDomain.mouseDrag(EditDomain.java:259)
	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:363)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:543)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:205)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at uk.ac.bolton.archimate.editor.Application.start(Application.java:66)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Alexander Nyßen CLA 2011-09-23 14:04:55 EDT
Sounds like a duplicate of bug #122754. Could you please try to confirm?
Comment 2 CLA 2011-09-23 14:11:03 EDT
(In reply to comment #1)
> Sounds like a duplicate of bug #122754. Could you please try to confirm?

Yep, confirmed. My stack trace might be more useful.
Comment 3 Alexander Nyßen CLA 2011-09-23 14:14:25 EDT

*** This bug has been marked as a duplicate of bug 122754 ***