From 2b0e24c69819c4c95904b5c3b054662ee92fa415 Mon Sep 17 00:00:00 2001 From: lempinen Date: Mon, 22 Oct 2012 11:34:03 +0000 Subject: [PATCH] issue decorations null check (refs #3789) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26123 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/browser/contributions/AbstractNodeImager.java | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.1