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

Bug 357193

Summary: Too many NullPointerException (NPE)
Product: [Modeling] Papyrus Reporter: Vincent Hémery <vincent.hemery>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Vincent Hémery CLA 2011-09-09 03:51:32 EDT
Lots of NPE occurs while using Papyrus.
Most of them are easy to fix and should be dealt with very quickly.

You may reuse this bug if you encounter one, telling in this bug and in the commit comment more details about the fixed NPE.
Comment 1 Vincent Hémery CLA 2011-09-09 03:58:19 EDT
Fix NPE while opening class diagram with associations loaded, but linked to a not loaded element.
The equals comparison must be performed with EcoreUtil.equals

Concerned methods are 
org.eclipse.papyrus.diagram.clazz.custom.helper.AssociationEndSourceLabelHelper.getUMLElement(GraphicalEditPart)
and
org.eclipse.papyrus.diagram.clazz.custom.helper.AssociationEndTargetLabelHelper.getUMLElement(GraphicalEditPart)

commit 5412 on trunk, 5411 on 0.8.X
Comment 2 Camille Letavernier CLA 2013-05-31 12:39:24 EDT
I close this task which is too generic (And there aren't so many NPEs anymore)