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

Bug 485432

Summary: NPE when opening a odesign from file system
Product: [Modeling] Sirius Reporter: Laurent Fasani <laurent.fasani>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED FIXED QA Contact: Laurent Redor <laurent.redor>
Severity: normal    
Priority: P3 CC: laurent.redor, pierre-charles.david
Version: 3.1.0Keywords: triaged
Target Milestone: 4.0.0M6   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/63871
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=50ba55b348596840397f53755fe5697f9f5456c3
Whiteboard:

Description Laurent Fasani CLA 2016-01-08 11:11:13 EST
scenario:

* create a VSP
* close it
* File/open and choose project.odesign
-> NPE 
java.lang.NullPointerException
	at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.normalize(ExtensibleURIConverterImpl.java:407)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:370)
	at org.eclipse.sirius.editor.tools.internal.presentation.CustomSiriusEditor.createModel(CustomSiriusEditor.java:350)
	at org.eclipse.sirius.editor.editorPlugin.SiriusEditor.createPages(SiriusEditor.java:828)
	at org.eclipse.sirius.editor.tools.internal.presentation.CustomSiriusEditor.createPages(CustomSiriusEditor.java:195)
Comment 1 Laurent Fasani CLA 2016-01-08 11:16:37 EST
the IEditorInput is aFileStoreEditorInput and is not managed in org.eclipse.sirius.editor.tools.internal.presentation.CustomSiriusEditor.getURIFromInput(IEditorInput)
The returned URI is null
Comment 2 Eclipse Genie CLA 2016-01-08 11:50:05 EST
New Gerrit change created: https://git.eclipse.org/r/63871
Comment 4 Laurent Redor CLA 2016-05-24 09:08:20 EDT
Verified on Sirius 4.0.0 RC1 (4.0.0.201605180923)
Comment 5 Pierre-Charles David CLA 2016-06-24 08:02:06 EDT
Available in Sirius 4.0.0.