NPE involving user in ExecutionEntity

Description

In ExecutionEntity.java we got (line 1256):

public IdentityLinkEntity involveUser(String userId, String type) {
for (IdentityLinkEntity identityLink : getIdentityLinks()) {
if (identityLink.getUserId().equals(userId)) {
return identityLink;
}
}
return addIdentityLink(userId, type);
}

A NPE is thrown retrieving userId in identityLink.getUserId() while populating IdentityLinkEntities. AFAIK table ACT_RU_IDENTITYLINK may have a null in column USER_ID_ (for example, when we work with GROUP_ID_).

My apologizes for not submitting a patch, but I don't know if I'm right about the behavior of IdentityLinks.

Environment

None

Assignee

Joram Barrez

Reporter

Alan Artigao

Labels

None

Components

Affects versions

Priority

Major
Configure