Bug 540845 - NPE at diagram opening with missing bundle image extension
Summary: NPE at diagram opening with missing bundle image extension
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-11-06 11:13 EST by Florian Barbin CLA
Modified: 2019-05-02 08:39 EDT (History)
2 users (show)

See Also:


Attachments
stack trace (16.21 KB, application/octet-stream)
2018-11-06 11:13 EST, Florian Barbin CLA
no flags Details
design sample (7.71 KB, application/zip)
2018-11-06 11:14 EST, Florian Barbin CLA
no flags Details
extension project (5.31 KB, application/zip)
2018-11-06 11:14 EST, Florian Barbin CLA
no flags Details
refreshDialog (7.66 KB, image/png)
2019-05-02 08:39 EDT, Jessy Mallet CLA
no flags Details

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