Skip to content

Commit

Permalink
Merge pull request bluejoe2008#3 from longfan3/master
Browse files Browse the repository at this point in the history
修复由于Activiti新版本createUserTaskActivityBehavior方法修改造成的参数传递null会报空指针异常问题
  • Loading branch information
bluejoe2008 committed Mar 9, 2016
2 parents f8ac396 + 7c9ac1d commit 091dcde
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ protected ActivityImpl createActivity(ProcessEngine processEngine, ProcessDefini
taskDefinition.setAssigneeExpression(new FixedValue(assignee));
}

UserTaskActivityBehavior cloneActivityBehavior = ((ProcessEngineConfigurationImpl) processEngine
.getProcessEngineConfiguration()).getActivityBehaviorFactory().createUserTaskActivityBehavior(null,
taskDefinition);
UserTaskActivityBehavior cloneActivityBehavior = new UserTaskActivityBehavior(null, taskDefinition);
clone.setActivityBehavior(cloneActivityBehavior);

return clone;
Expand Down Expand Up @@ -82,4 +80,4 @@ protected String createUniqueActivityId(String processInstanceId, String prototy
return processInstanceId + ":" + prototypeActivityId + ":" + System.currentTimeMillis() + "-"
+ (SEQUNCE_NUMBER++);
}
}
}

0 comments on commit 091dcde

Please sign in to comment.