Opravena chyba null pointer při automatickém schválení podlimitního
požadavku.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user