diff --git a/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java b/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java index 647615688..e799879b3 100644 --- a/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java +++ b/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java @@ -391,7 +391,7 @@ public class UserRep implements Serializable { Map 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 accept(PrivilegeElementVisitor visitor) {