Skip to content

Commit

Permalink
[HOTFIX] basetime null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Jan 13, 2024
1 parent b64bc0f commit 4d5c70e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void checkExpire() {
}

private boolean isRequestNotExpired() {
return this.friendStatus == FriendStatus.REQUESTED
&& this.baseTime.getCreatedAt().isAfter(LocalDateTime.now().minusMinutes(30L));
return this.baseTime == null || (this.friendStatus == FriendStatus.REQUESTED
&& this.baseTime.getCreatedAt().isAfter(LocalDateTime.now().minusMinutes(30L)));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void checkExpire() {
}

private boolean isRequestNotExpired() {
return this.groupInviteCode == GroupInviteCode.REQUESTED
&& this.baseTime.getCreatedAt().isAfter(LocalDateTime.now().minusMinutes(30L));
return this.baseTime == null || (this.groupInviteCode == GroupInviteCode.REQUESTED
&& this.baseTime.getCreatedAt().isAfter(LocalDateTime.now().minusMinutes(30L)));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public String getDeviceTokenValue() {
}

private boolean isRequestNotExpired() {
return this.baseTime.getCreatedAt().isAfter(LocalDateTime.now().minusMinutes(30L));
return this.baseTime == null ||
(this.planInviteCode == PlanInviteCode.REQUESTED && this.baseTime.getCreatedAt().isAfter(LocalDateTime.now().minusMinutes(30L)));
}
}

0 comments on commit 4d5c70e

Please sign in to comment.