Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316281 - [Layout] Layout throw a NPE when doing shift-click
Summary: [Layout] Layout throw a NPE when doing shift-click
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 08:44 EDT by Cedric Dumoulin CLA
Modified: 2013-04-02 13:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Dumoulin CLA 2010-06-09 08:44:22 EDT
When doing a shift-click to select several properties in a class, a NPE is thrown.
How to reproduce:
- create a class diagram
- create a class with 2 property
- try to select both properties with shift-click. This cause a NPE




java.lang.NullPointerException
	at org.eclipse.papyrus.diagram.common.layout.EditPartTree.buildTree(EditPartTree.java:424)
	at org.eclipse.papyrus.diagram.common.layout.EditPartTree.<init>(EditPartTree.java:87)
	at org.eclipse.papyrus.diagram.common.layout.AlignmentTree.<init>(AlignmentTree.java:58)
	at org.eclipse.papyrus.diagram.common.actions.CustomAlignAction.getCommand(CustomAlignAction.java:130)
	at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.getCommand(DiagramAction.java:161)
	at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.calculateEnabled(DiagramAction.java:124)
	at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.refresh(DiagramAction.java:114)
	at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler$2.partActivated(AbstractActionHandler.java:158)
	at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
	at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
	at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
Comment 1 Camille Letavernier CLA 2013-04-02 13:31:28 EDT
Cannot reproduce in the current version (0.10M6)