Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NPE while dragging bendpoint
NPE while dragging bendpoint [message #200747] Wed, 26 October 2005 16:22
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Hi,

i get a strange NPE, when moving a bendpoint, occuring randomly:
Scenario:
PolyLine Connection with one bendpoint.
Drag bendpoint around.
When bendpoint is directly between source and target, this NPE occurs
*casually*:
( I know, nothing happens at random...:-) )

java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at org.eclipse.draw2d.geometry.PointList.getPoint(PointList.jav a:183)
at
org.eclipse.gef.editpolicies.BendpointEditPolicy.setReferenc ePoints(Bendpoin
tEditPolicy.java:258)
at
org.eclipse.gef.editpolicies.BendpointEditPolicy.showMoveBen dpointFeedback(B
endpointEditPolicy.java:310)
at
org.eclipse.gef.editpolicies.BendpointEditPolicy.showSourceF eedback(Bendpoin
tEditPolicy.java:343)
at
org.eclipse.gef.editparts.AbstractEditPart.showSourceFeedbac k(AbstractEditPa
rt.java:991)
at
org.eclipse.gef.tools.SimpleDragTracker.showSourceFeedback(S impleDragTracker
..java:220)
at
org.eclipse.gef.tools.SimpleDragTracker.handleDragInProgress (SimpleDragTrack
er.java:134)
at org.eclipse.gef.tools.AbstractTool.mouseDrag(AbstractTool.ja va:994)
at org.eclipse.gef.tools.SelectionTool.mouseDrag(SelectionTool. java:502)
at org.eclipse.gef.EditDomain.mouseDrag(EditDomain.java:205)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Moved(DomainEven
tDispatcher.java:329)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove( LightweightSyste
m.java:511)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:144)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)


Any ideas?
regards, Ingo
Previous Topic:Another question on PolylineConnection
Next Topic:Centering text in flowpage vertically
Goto Forum:
  


Current Time: Fri Apr 19 04:23:48 GMT 2024

Powered by FUDForum. Page generated in 0.01805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top