Bug 553498 - [ELK] NPE when using "Reset style properties to default value" on an edge layouted with ELK
Summary: [ELK] NPE when using "Reset style properties to default value" on an edge lay...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-11-26 11:28 EST by Laurent Redor CLA
Modified: 2021-05-05 09:23 EDT (History)
1 user (show)

See Also:


Attachments
stacktrace.txt (5.75 KB, text/plain)
2019-11-26 11:28 EST, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Redor CLA 2019-11-26 11:28:36 EST
Created attachment 280790 [details]
stacktrace.txt

Steps to reproduce:
* Using data of bug 538933
* Launch an arrange all
* A style as below is added to each edge:
    <styles xmi:type="notation:StringValueStyle" xmi:id="_0SafJAYkEeqevcOEw7ZVVg" name="junctionPoints" stringValue="()"/>
* Select an edge
* Click on "Reset style properties to default value"
* Save
* Launch another arrange all --> NPE is thrown (see stacktrace.txt for the full stacktrace):
	Caused by: java.lang.NullPointerException
	at org.eclipse.gmf.runtime.notation.impl.ViewImpl.getNamedStyle(ViewImpl.java:496)
	at org.eclipse.sirius.diagram.elk.GmfLayoutCommand.doExecuteWithResult(GmfLayoutCommand.java:227)...


After using the "Reset style properties to default value", only 
	<styles xmi:type="notation:StringValueStyle" xmi:id="xxx"/>
remains and this explains the NPE.