Bug 540845

Summary: NPE at diagram opening with missing bundle image extension
Product: [Modeling] Sirius Reporter: Florian Barbin <florian.barbin>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: jessy.mallet, julien.dupont
Version: 6.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=481025
https://bugs.eclipse.org/bugs/show_bug.cgi?id=463051
Whiteboard:
Attachments:
Description Flags
stack trace
none
design sample
none
extension project
none
refreshDialog none

Description Florian Barbin CLA 2018-11-06 11:13:58 EST
Created attachment 276483 [details]
stack trace

An NPE occurs at diagram opening if the bundle image extension is unavailable.

Steps to reproduce:
Import the extension project
Launch a runtime
Import the sample design and sample project
open the diagram
close the extension project
restart the runtime
KO -> the NPE occurs
Comment 1 Florian Barbin CLA 2018-11-06 11:14:26 EST
Created attachment 276484 [details]
design sample
Comment 2 Florian Barbin CLA 2018-11-06 11:14:44 EST
Created attachment 276485 [details]
extension project
Comment 3 Florian Barbin CLA 2018-11-06 11:17:53 EST
This issue seems linked to the bug 463051 and this commit: https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=efd3b9696ba32572b6494bacfb51899cb2b2408a
Comment 4 Jessy Mallet CLA 2019-05-02 08:39:41 EDT
Created attachment 278468 [details]
refreshDialog

With Sirius 6.1.3.201904190833, I did not reproduce this behaviour. 

After closing the extension project and restarting the runtime, I have no NPE but a refresh dialog is displayed to refresh diagram. If you click on OK, it appears again and so on and so on...