From 12bb6931fdd80ee4550a4a1b54b6dfc99ece9f8c Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Tue, 7 Oct 2008 13:11:16 +0000 Subject: [PATCH] fix bug when node have not some resource --- base/src/org/eevolution/process/CRP.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base/src/org/eevolution/process/CRP.java b/base/src/org/eevolution/process/CRP.java index 7cc004fbc4..efa67a85ee 100644 --- a/base/src/org/eevolution/process/CRP.java +++ b/base/src/org/eevolution/process/CRP.java @@ -122,6 +122,10 @@ public class CRP extends SvrProcess { node = owf.getNode(nodeId); log.fine("PP_Order Node:" + node.getName() != null ? node.getName() : "" + " Description:" + node.getDescription() != null ? node.getDescription() : ""); MResource resource = MResource.get(getCtx(), node.getS_Resource_ID()); + + if(resource== null) + continue; + MResourceType resourceType = resource.getResourceType(); if(!reasoner.isAvailable(resource)) @@ -156,6 +160,10 @@ public class CRP extends SvrProcess { node = owf.getNode(nodeId); log.fine("PP_Order Node:" + node.getName() != null ? node.getName() : "" + " Description:" + node.getDescription() != null ? node.getDescription() : ""); MResource resource = MResource.get(getCtx(), node.getS_Resource_ID()); + + if(resource == null) + continue; + MResourceType resourceType = resource.getResourceType(); if(!reasoner.isAvailable(resource))