- use null-safe Objects.equals()
@Override
public boolean ifUserMustChangePassword () {
- return (this.isUserLoggedIn() && this.getLoggedInUser().getUserMustChangePassword());
+ return ((this.isUserLoggedIn()) && (Objects.equals(this.getLoggedInUser().getUserMustChangePassword(), Boolean.TRUE)));
}
@Override
}
// Check logged-in first, then invisibility
- return this.getLoggedInUser().getUserProfileMode().equals(ProfileMode.INVISIBLE);
+ return Objects.equals(this.getLoggedInUser().getUserProfileMode(), ProfileMode.INVISIBLE);
}
@Override