fix bug when node have not some resource

This commit is contained in:
vpj-cd 2008-10-07 13:11:16 +00:00
parent 69a3755b9a
commit 12bb6931fd
1 changed files with 8 additions and 0 deletions

View File

@ -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))