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

Bug 311044

Summary: Operation with undefined name causes null pointer exception
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: ibtihel touahni khemir <ibtihel.khemir>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: vincent.lorenzo
Version: 4.8.0   
Target Milestone: 5.0.0   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/c/papyrus/org.eclipse.papyrus/+/171118
https://git.eclipse.org/r/c/papyrus/org.eclipse.papyrus/+/171448
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=3f954c7ab6c0e7e3fb63f7491a5d5976cb5842e4
Whiteboard:
Attachments:
Description Flags
Model for reproducing the error none

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