Bug 129790 - NPE arranging specific composite graph
Summary: NPE arranging specific composite graph
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 critical
Target Milestone: 1.0   Edit
Assignee: Mohammed Mostafa CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2006-02-28 10:13 EST by Steven R. Shaw CLA
Modified: 2010-07-19 12:30 EDT (History)
0 users

See Also:


Attachments
diagram which causes NPE during arrange (9.94 KB, image/gif)
2006-02-28 10:14 EST, Steven R. Shaw CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven R. Shaw CLA 2006-02-28 10:13:38 EST
- Create arrangement of circuits with contained geoshapes as demonstrated in attached diagram.
- right click on diagram select Arrange-all

Result:
java.lang.NullPointerException
at org.eclipse.draw2d.graph.Edge.<init>(Edge.java:164)
at org.eclipse.draw2d.graph.Edge.<init>(Edge.java:137)
at org.eclipse.draw2d.graph.Edge.<init>(Edge.java:148)
at org.eclipse.gmf.runtime.draw2d.ui.internal.graph.CompositeDirectedGraphLayout.pushExtraEdges(CompositeDirectedGraphLayout.java:142)
at org.eclipse.gmf.runtime.draw2d.ui.internal.graph.CompositeDirectedGraphLayout.layoutNodes(CompositeDirectedGraphLayout.java:113)
at org.eclipse.gmf.runtime.draw2d.ui.internal.graph.CompositeDirectedGraphLayout.layoutNodes(CompositeDirectedGraphLayout.java:54)
at org.eclipse.gmf.runtime.draw2d.ui.internal.graph.CompositeDirectedGraphLayout.visit(CompositeDirectedGraphLayout.java:46)
at org.eclipse.gmf.runtime.diagram.ui.providers.internal.DefaultProvider.layoutEditParts(DefaultProvider.java:126)
at org.eclipse.gmf.runtime.diagram.ui.services.layout.AbstractLayoutEditPartProvider.layoutLayoutNodes(AbstractLayoutEditPartProvider.java:67)
at org.eclipse.gmf.runtime.diagram.ui.internal.services.layout.LayoutNodesOperation.execute(LayoutNodesOperation.java:74)
at org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(ExecutionStrategy.java:75)
at org.eclipse.gmf.runtime.common.core.service.Service.execute(Service.java:601)
at org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutService.execute(LayoutService.java:64)
at org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutService.layoutLayoutNodes(LayoutService.java:284)
at org.eclipse.gmf.runtime.diagram.ui.editpolicies.ContainerEditPolicy.layoutNodes(ContainerEditPolicy.java:330)
at org.eclipse.gmf.runtime.diagram.ui.editpolicies.ContainerEditPolicy.getArrangeCommand(ContainerEditPolicy.java:303)
at org.eclipse.gmf.runtime.diagram.ui.editpolicies.ContainerEditPolicy.getCommand(ContainerEditPolicy.java:428)
at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:473)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$1(GraphicalEditPart.java:1)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$1.run(GraphicalEditPart.java:407)
at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:246)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.getCommand(GraphicalEditPart.java:402)
at org.eclipse.gmf.runtime.diagram.ui.actions.internal.ArrangeAction.getCommand(ArrangeAction.java:93)
at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.doRun(DiagramAction.java:101)
at org.eclipse.gmf.runtime.diagram.ui.actions.internal.ArrangeAction.doRun(ArrangeAction.java:285)
at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.run(AbstractActionHandler.java:298)
at org.eclipse.gmf.runtime.common.ui.action.ActionManager$1.run(ActionManager.java:246)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
Comment 1 Steven R. Shaw CLA 2006-02-28 10:14:40 EST
Created attachment 35472 [details]
diagram which causes NPE during arrange

See attached diagram configuration which causes NPE
Comment 2 Mohammed Mostafa CLA 2006-03-01 11:04:08 EST
Fixed
Comment 3 Richard Gronback CLA 2008-08-13 13:07:04 EDT
[target cleanup] 1.0 M5 was the original target milestone for this bug
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:30:05 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug