]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
null-check for resource selection processor. The processor did not work anymore with...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 29 Mar 2012 06:44:24 +0000 (06:44 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 29 Mar 2012 06:44:24 +0000 (06:44 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24561 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ResourceSelectionProcessor.java

index dab187f9a48c125509070fcde44ad02cc7bbc4e6..c38158a28114c8239dd503c5405ae7e75c9e762b 100644 (file)
@@ -120,7 +120,7 @@ public class ResourceSelectionProcessor implements SelectionProcessor<Object, Re
             NodeContext nc = AdaptionUtils.adaptToSingle(selection, NodeContext.class);\r
             if(nc != null) {\r
                 NodeType type = nc.getConstant(NodeType.TYPE);\r
-                if(type.equals(sharedFunctionsTestNode)) {\r
+                if(type != null && type.equals(sharedFunctionsTestNode)) {\r
                     return Collections.singleton(new ComparableTabContributor(\r
                             new SharedFunctionLibrariesTab(),\r
                             2,\r