@ -57,7 +57,8 @@ public class RequirementServiceImpl extends RequirementBaseServiceImpl<Requireme
return false;
}
if (entity.getSumTotal().compareTo(nextWf.getLimit()) == -1)
if ((entity.getSumTotal() != null)
&& (entity.getSumTotal().compareTo(nextWf.getLimit()) == -1))
{
approve(entity, approvers.get(0));
return true;