if (null == event) {
// Throw NPE
throw new NullPointerException("event is null"); //NOI18N
- } else if (event.getRegisteredUser()== null) {
+ } else if (event.getRegisteredUser() == null) {
// Throw NPE again
throw new NullPointerException("event.user is null"); //NOI18N
} else if (event.getRegisteredUser().getUserId() == null) {
this.setUserId(registeredUser.getUserId());
// Is the account public?
- if (registeredUser.getUserProfileMode().equals(ProfileMode.PUBLIC)) {
+ if (Objects.equals(registeredUser.getUserProfileMode(), ProfileMode.PUBLIC)) {
// Also add it to this list
this.visibleUserList.add(registeredUser);
}