Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330651 - [Profile tab] Exception when an attribute that is not a named element need to be assigned
Summary: [Profile tab] Exception when an attribute that is not a named element need to...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ansgar Radermacher CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 06:37 EST by Ansgar Radermacher CLA
Modified: 2010-11-19 06:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Radermacher CLA 2010-11-19 06:37:20 EST
There is an exception in the getLabel operation (see trace below), if the available objects are no named elements. The existing code in getLabels has a special treatment for some types (e.g. package import or comment), but not for instance for template signature and template binding. The error is caused by an unchecked assumption that a suitable named element associated with the selection has been assigned.

java.lang.NullPointerException
	at org.eclipse.papyrus.profile.utils.Util.getLabel(Util.java:125)
	at org.eclipse.papyrus.profile.utils.Util.getStringArrayFromList(Util.java:185)
	at org.eclipse.papyrus.profile.tree.objects.MetaclassValueTreeObject.editMe(MetaclassValueTreeObject.java:78)
	at org.eclipse.papyrus.profile.ui.compositesformodel.PropertyComposite.addButtonPressed(PropertyComposite.java:195)
Comment 1 Ansgar Radermacher CLA 2010-11-19 06:39:02 EST
Fixed in 0.7x (plugin org.eclipse.papyrus.profile)
Comment 2 Ansgar Radermacher CLA 2010-11-19 06:39:57 EST
Fixed in 0.7x (plugin org.eclipse.papyrus.profile).