Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357193 - Too many NullPointerException (NPE)
Summary: Too many NullPointerException (NPE)
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 03:51 EDT by Vincent Hémery CLA
Modified: 2013-05-31 12:39 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 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)