[Fix] Handle missing UserHistory on UserRep.clone()

This commit is contained in:
Robert von Burg 2021-02-22 16:25:09 +01:00
parent cdfa57d1d8
commit daad639f9c
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ public class UserRep implements Serializable {
Map<String, String> propertyMap = this.properties == null ? null : new HashMap<>(this.properties);
return new UserRep(this.userId, this.username, this.firstname, this.lastname, this.userState, roles,
this.locale, propertyMap, this.history.getClone());
this.locale, propertyMap, this.history == null ? new UserHistory() : this.history.getClone());
}
public <T> T accept(PrivilegeElementVisitor<T> visitor) {