Rectilinear Router Throws Exception [message #1220616] |
Thu, 12 December 2013 12:20  |
Eclipse User |
|
|
|
Hi,
I tried to use BorderRectilinerRouter for a connection figure in Graphiti 0.9.2.
This router was explicitly set instead of FreeFormConnectionRouter of Graphiti. The creation of connection works fine, however when I shift the connection by holding bendpoints, I get following exception and the refresh of diagram gets hanged. On my initial analysis, I found the newLine was infact 0 in size, which on calculation of newLine.size()-1 resulted in -1, in RectilinearRouter.routeLine at Point lastEndAnchor = newLine.removePoint(newLine.size() - 1);
Also it was found that below method was in fact returning pointlist empty:
ObliqueRouter.calculateBendPoints(Connection conn)
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
at org.eclipse.draw2d.geometry.PointList.removePoint(PointList.java:334)
at org.eclipse.gmf.runtime.draw2d.ui.internal.routers.RectilinearRouter.routeLine(RectilinearRouter.java:96)
at org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter.routeBendpoints(ObliqueRouter.java:210)
at org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter.route(ObliqueRouter.java:195)
Please suggest how to resolve this issue.
Thanks,
Kunal
|
|
|
|
Powered by
FUDForum. Page generated in 0.03285 seconds