| Summary: | NPE in editor after restarting Eclipse | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Verena Käfer <verena.kaefer> |
| Component: | Diagram | Assignee: | Maxime Porhel <maxime.porhel> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | laurent.redor, maxime.porhel, verena.kaefer |
| Version: | 1.0.1 | Keywords: | triaged |
| Target Milestone: | 2.0.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 445737 | ||
|
Description
Verena Käfer
It seems the NPE can occurs on every type of diagram (and not only sequence): The NPE occurs on master on line 611 and on v1.0.x on line 619. It occurs when the diagram has a null semantic target. A non null check is required. Did you save your models before restarting Eclipse ? How did you restart (a restart from the restart menu or a rougher 'Terminate' of a runtime from your IDE) ? A direct reproduction case to get the NPE could be to create and aird containing a DDiagram with a null target, but the open action (contextual menu and double click) has been corrected during 2.0.0 to avoid to open such dangling representations (Bug 438138, commit bf060e1027dba7936588a500dda09bf3e194fa7f). This kind of reproduction case should be o for the report on 1.0.1. But on 2.0.0, we will have to find another scenario. I tried many ways: - Terminate the Eclipse instance by the menu and start it again - Just terminate the runtime - Install everything in a new Eclipse an restart it It didn't make a difference wheather the models were closed and saved or not Hi Verena, I still do not reproduce with Sirius 1.0.1 and a Sequence diagram on an Interaction model (the org.eclipse.sirius.sample.interactions.* plugins are now available on the master branch of the Sirius Git). And for the moment I do not success to get after restart a DDiagram with a null target. I looks like in your case, the target reference between your DDiagram and you domain model element is not serialized before/during the restart. When I try to reproduce I have the Sirius 'error' editor after restart saying me that the representation was not saved and that I can close the opened editor. See https://git.eclipse.org/r/34869 for a patch to avoid the NPE. Hi Maxime, For some reason I cannot reprudece the bug any more as well, no idea what exactly changed in our programm. Thanks for your help. The NPE is corrected by commit 9a47d37fb8c3157d04ae522f602737db61bc0ffb. Available in Sirius 2.0.0. |