From: Jani Mäkinen Date: Wed, 12 Jun 2019 07:09:50 +0000 (+0300) Subject: drawing shadows for dependency arrows results in nullpointerexception X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a7c01ec080adad211972bd2089702f1ba4b04a81;p=simantics%2Fsysdyn.git drawing shadows for dependency arrows results in nullpointerexception gitlab #48 Change-Id: If9ce3ab1c10529e62d114d88963259e73d533226 --- 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); } }