|
|
|
@ -272,8 +272,10 @@ public class AdvancedOperationUtil {
|
|
|
|
|
if(Validator.isNotNull(lastTask)){ |
|
|
|
|
long assigneeUserId = lastTask.getAssigneeUserId(); |
|
|
|
|
try { |
|
|
|
|
User assignee = UserLocalServiceUtil.getUser(assigneeUserId); |
|
|
|
|
return UserUtil.getUnitaOperative(assignee); |
|
|
|
|
if(-1 != assigneeUserId){ |
|
|
|
|
User assignee = UserLocalServiceUtil.getUser(assigneeUserId); |
|
|
|
|
return UserUtil.getUnitaOperative(assignee); |
|
|
|
|
} |
|
|
|
|
} catch (SystemException | PortalException e){ |
|
|
|
|
_log.error("AOP ==> Error while analyzing IntPratica: " + intPratica.getIntPraticaId()); |
|
|
|
|
_log.error(e,e); |
|
|
|
|