Skip to content

Commit

Permalink
Merge pull request IQSS#9030 from DANS-KNAW/9029
Browse files Browse the repository at this point in the history
Initialize transient fields with empty HashMap instead of null
  • Loading branch information
scolapasta authored Oct 31, 2022
2 parents 42e2b59 + d8c3f6a commit 29fe94b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -135,10 +136,10 @@ public class AuthenticatedUser implements User, Serializable {
private String mutedNotifications;

@Transient
private Set<Type> mutedEmailsSet;
private Set<Type> mutedEmailsSet = new HashSet<>();

@Transient
private Set<Type> mutedNotificationsSet;
private Set<Type> mutedNotificationsSet = new HashSet<>();

@PrePersist
void prePersist() {
Expand Down

0 comments on commit 29fe94b

Please sign in to comment.