From: lempinen Date: Mon, 22 Oct 2012 11:34:03 +0000 (+0000) Subject: issue decorations null check (refs #3789) X-Git-Tag: simantics-1.10.1~117 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=2b0e24c69819c4c95904b5c3b054662ee92fa415;p=simantics%2Fsysdyn.git issue decorations null check (refs #3789) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26123 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/AbstractNodeImager.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/AbstractNodeImager.java index 202b8b81..7d94c4d5 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/AbstractNodeImager.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/AbstractNodeImager.java @@ -147,6 +147,9 @@ public class AbstractNodeImager extends ImagerContributor * @throws DatabaseException */ private Severity getMaxSeverityStructural(ReadGraph graph, Resource resource, HashSet issueTypes, Severity severity) throws DatabaseException { + if(resource == null) + return severity; + Layer0 L0 = Layer0.getInstance(graph); SysdynResource SR = SysdynResource.getInstance(graph);