@@ -599,8 +599,7 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
: null
: CheckFlowDirection(currentStep.BusinessType, stepDefine.BusinessType);
- stepOption.Handler =
- originStep.NextHandlers.First(d => d.Key == originStep.HandlerId || d.Key == originStep.HandlerOrgId);
+ if (originStep.NextHandlers.Any()) stepOption.Handler = originStep.NextHandlers.First(d => d.Key == originStep.HandlerId || d.Key == originStep.HandlerOrgId);
steps.Add(stepOption);
}