| Summary: | NPE in VSM editor when a diagram's metamodel reference is invalid | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Pierre-Charles David <pierre-charles.david> | ||||
| Component: | Core | Assignee: | Project inbox <sirius.core-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | belqassim.djafer, florian.barbin, jessy.mallet, john.palof, laurent.redor, maxime.porhel | ||||
| Version: | 1.0.0M6 | Keywords: | triaged | ||||
| Target Milestone: | 3.0.0M5 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
currently working on it Verified on Sirius 3.0.0M6 Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |
Created attachment 241257 [details] Sample VSM with broken metamodel reference Steps to reproduce: 1. Import the attached VSM, which include an reference to a metamodel through an absolute filestystem path (which very probably does not exist on your system). 2. Open it, and select the "Family" diagram element. 3. Make sure the Properties view is visible and try to select the "Metamodels" property tab => NPE. java.lang.NullPointerException at org.eclipse.sirius.editor.properties.sections.description.representationdescription.RepresentationDescriptionMetamodelsUpdater.getCompleteURIToEPackage(RepresentationDescriptionMetamodelsUpdater.java:304) at org.eclipse.sirius.editor.properties.sections.description.representationdescription.RepresentationDescriptionMetamodelPropertySectionSpec.refresh(RepresentationDescriptionMetamodelPropertySectionSpec.java:201) at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(TabContents.java:217)