From a7c01ec080adad211972bd2089702f1ba4b04a81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jani=20M=C3=A4kinen?= Date: Wed, 12 Jun 2019 10:09:50 +0300 Subject: [PATCH] drawing shadows for dependency arrows results in nullpointerexception gitlab #48 Change-Id: If9ce3ab1c10529e62d114d88963259e73d533226 --- .../org/simantics/sysdyn/ui/elements/profiles/ShadowStyle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/profiles/ShadowStyle.java b/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/profiles/ShadowStyle.java index ee0f442b..e8616af9 100644 --- a/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/profiles/ShadowStyle.java +++ b/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/profiles/ShadowStyle.java @@ -62,7 +62,7 @@ public class ShadowStyle extends StyleBase { if(original != null) { Collection otherShadows = graph.getObjects(original, SR.Shadow_original_Inverse); otherShadows.remove(component); - if(selection.equals(original) || otherShadows.contains(selection)) { + if(original.equals(selection) || otherShadows.contains(selection)) { // If r is connection, selection is null return new ShadowResult(Style.SHADOW, transform); } } -- 2.47.1