Bug 531514 - NPE in ContainerWithTitleBlockFigure.getBorderColor()
Summary: NPE in ContainerWithTitleBlockFigure.getBorderColor()
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.1.1   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 5.1.2   Edit
Assignee: Project Inbox CLA
QA Contact: Florian Barbin CLA
URL:
Whiteboard:
Keywords: triaged
Depends on: 531513
Blocks: 531515
  Show dependency tree
 
Reported: 2018-02-22 03:39 EST by Maxime Porhel CLA
Modified: 2018-06-28 12:11 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2018-02-22 03:39:07 EST
+++ This bug was initially created as a clone of Bug #531513 +++

In a specific context (Capella +  Team for Capella), when a diagram is deleted, the figure refresh might lead to NPE in ContainerWithTitleBlockFigure.getBorderColor()

> java.lang.NullPointerException
>	at 
> org.eclipse.sirius.diagram.ui.tools.internal.figure.ContainerWithTitleBlockFigure.geBorderColor(ContainerWithTitleBlockFigure.java:184)
>	at 
> org.eclipse.sirius.diagram.ui.tools.internal.figure.ContainerWithTitleBlockFigure.paintBorder(ContainerWithTitleBlockFigure.java:72)
> 	at org.eclipse.draw2d.Figure.paint(Figure.java:1121)
>	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

I have no pure Sirius scenario for the moment.
Comment 2 Florian Barbin CLA 2018-05-31 09:10:19 EDT
No Sirius Scenario. 
Validated as technical issue
Comment 3 Laurent Redor CLA 2018-06-28 12:11:09 EDT
Available in Sirius 5.1.2, see https://wiki.eclipse.org/Sirius/5.1.2 for details