NullpointerExpcetion in DbSqlSession.class sameIdentity Method

Description

run in a MultiInstanceTask and add Comlpete EventListener ,my Listener invoke taskService.getIdentityLinksForTask() ,when the MultiInstanceTask will be going to next node,it will be throw NullpointerException,beacuse taskService.getIdentityLinksForTask(taskId) invoke GetIdentityLinksForTaskCmd.class execute method has code :

if (task.getAssignee() != null) { IdentityLinkEntity identityLink = new IdentityLinkEntity(); identityLink.setUserId(task.getAssignee()); identityLink.setType(IdentityLinkType.ASSIGNEE); identityLink.setTaskId(task.getId()); identityLinks.add(identityLink); }
id is null
and in the DbSqlSession.class public boolean sameIdentity(PersistentObject other) {
return persistentObject.getClass().equals(other.getClass())
&& persistentObject.getId().equals(other.getId());
}
then will throw NullpointExpection

Environment

None

Status

Assignee

Joram Barrez

Reporter

skill7899

Labels

None

Components

Affects versions

Priority

Lowest
Configure