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

Bug 431196

Summary: NPE in VSM editor when a diagram's metamodel reference is invalid
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: CoreAssignee: 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.0M6Keywords: triaged
Target Milestone: 3.0.0M5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Sample VSM with broken metamodel reference none

Description Pierre-Charles David CLA 2014-03-26 05:20:21 EDT
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)
Comment 1 Jessy Mallet CLA 2014-12-08 10:43:46 EST
currently working on it
Comment 3 Belqassim Djafer CLA 2015-04-09 09:11:37 EDT
Verified on Sirius 3.0.0M6
Comment 4 Pierre-Charles David CLA 2015-06-24 11:15:24 EDT
Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0.