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

Bug 316281

Summary: [Layout] Layout throw a NPE when doing shift-click
Product: [Modeling] Papyrus Reporter: Cedric Dumoulin <cedric.dumoulin>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 0.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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)