Skip to content

Commit

Permalink
TitleEditForm: Fix NPE if permission.statusSetDate is null
Browse files Browse the repository at this point in the history
  • Loading branch information
ato committed Sep 26, 2023
1 parent c840381 commit a85cca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/pandas/collection/TitleEditForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public TitleEditForm(Title title) {
if (permission != null) {
permissionState = permission.getStateName();
permissionLocalReference = permission.getLocalReference();
permissionStatusSetDate = permission.getStatusSetDate().atZone(ZoneId.systemDefault()).toLocalDate();
permissionStatusSetDate = permission.getStatusSetDate() == null ? null : permission.getStatusSetDate().atZone(ZoneId.systemDefault()).toLocalDate();
permissionNote = permission.getNote();
}
if (permissionState == null) permissionState = "Unknown";
Expand Down

0 comments on commit a85cca6

Please sign in to comment.