Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311044 - Operation with undefined name causes null pointer exception
Summary: Operation with undefined name causes null pointer exception
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 4.8.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 5.0.0   Edit
Assignee: ibtihel touahni khemir CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 11:23 EDT by Ansgar Radermacher CLA
Modified: 2020-12-10 08:15 EST (History)
1 user (show)

See Also:


Attachments
Model for reproducing the error (2.50 KB, application/zip)
2010-04-29 11:27 EDT, Ansgar Radermacher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Radermacher CLA 2010-04-29 11:23:56 EDT
Build Identifier: 0.7.0.v201004271830

If an operation has a undefined name (due to a broken model), "null" is shown in the diagram. Trying to change the name causes a null pointer exception.
Problem might be valid for other named elements as well.



Reproducible: Always

Steps to Reproduce:
1. load model with a null (available on request, not possible to add attachment?)
2. open class diagram
3. click on operation name
Comment 1 Ansgar Radermacher CLA 2010-04-29 11:27:25 EDT
Created attachment 166505 [details]
Model for reproducing the error
Comment 2 Camille Letavernier CLA 2013-04-02 13:12:18 EDT
- Works fine when the operation name is changed from the properties view
- Does not work with "F2" (Direct edition in the diagram)
- The "Rename" menu does not even appear in the ModelExplorer when the initial name is not set
Comment 3 Eclipse Genie CLA 2020-10-22 08:51:25 EDT
New Gerrit change created: https://git.eclipse.org/r/c/papyrus/org.eclipse.papyrus/+/171118
Comment 4 Eclipse Genie CLA 2020-10-29 10:46:14 EDT
New Gerrit change created: https://git.eclipse.org/r/c/papyrus/org.eclipse.papyrus/+/171448