]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
issue decorations null check (refs #3789)
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 22 Oct 2012 11:34:03 +0000 (11:34 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 22 Oct 2012 11:34:03 +0000 (11:34 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26123 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/AbstractNodeImager.java

index 202b8b81d571f87b3daa12f19e79dd9cc5847a52..7d94c4d5b0b13797530e1c8e6de64bd4746d4721 100644 (file)
@@ -147,6 +147,9 @@ public class AbstractNodeImager extends ImagerContributor<AbstractNode<Resource>
      * @throws DatabaseException\r
      */\r
     private Severity getMaxSeverityStructural(ReadGraph graph, Resource resource, HashSet<Resource> issueTypes, Severity severity) throws DatabaseException {\r
+        if(resource == null)\r
+            return severity;\r
+        \r
         Layer0 L0 = Layer0.getInstance(graph);\r
         SysdynResource SR = SysdynResource.getInstance(graph);\r
         \r