Bug 561485 - NPE in AbstractDDiagramEditPart.getCommand(Request) while closing the session
Summary: NPE in AbstractDDiagramEditPart.getCommand(Request) while closing the session
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 6.3.1   Edit
Assignee: Project Inbox CLA
QA Contact: Laurent Fasani CLA
URL:
Whiteboard:
Keywords: triaged
: 540463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-26 07:41 EDT by Florian Barbin CLA
Modified: 2020-06-19 10:22 EDT (History)
2 users (show)

See Also:


Attachments
Stack trace (9.00 KB, text/plain)
2020-03-26 07:41 EDT, Florian Barbin 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 2020-03-26 07:41:29 EDT
Created attachment 282236 [details]
Stack trace

org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDDiagramEditPart.getCommand(Request) can raise an NPE if the session is closing with editors opened.

This has been revealed by a Junit test without end user scenario.
Comment 1 Eclipse Genie CLA 2020-03-26 07:43:54 EDT
New Gerrit change created: https://git.eclipse.org/r/160031
Comment 2 Florian Barbin CLA 2020-04-14 05:14:39 EDT
There is no steps to validate. Just make sure the DialectUIManagerTest#testCloseProjectWithOpenedEditor is passed.
Comment 4 Pierre-Charles David CLA 2020-05-04 11:51:55 EDT
*** Bug 540463 has been marked as a duplicate of this bug. ***
Comment 5 Laurent Fasani CLA 2020-05-05 03:38:23 EDT
validated with ODTE 11.3.1
Comment 6 Pierre-Charles David CLA 2020-06-19 10:22:27 EDT
Available in Sirius 6.3.1 (part of Eclipse 2020-06). See https://wiki.eclipse.org/Sirius/6.3.1 for details on the release.