I want to check if date from database is empty like this:
private boolean hasAccountExpired(LocalDateTime password_changed_at) {
return password_changed_at.isEqual(null);
}
But I get NPE. What is the proper way to check if date field from database is empty?