Bug 485432 - NPE when opening a odesign from file system
Summary: NPE when opening a odesign from file system
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.0.0M6   Edit
Assignee: Project inbox CLA
QA Contact: Laurent Redor CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-01-08 11:11 EST by Laurent Fasani CLA
Modified: 2016-06-24 08:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.