Skip to content

Commit

Permalink
Fixed potential NPE in Resource.toString method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Sep 26, 2022
1 parent 72facd1 commit 8f249da
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public void setAvailabilityCalendar(Calendar availabilityCalendar) {

@Override
public String toString() {
return getUserObject().toString();
if (getUserObject() != null) {
return getUserObject().toString();
}

return super.toString();
}
}

0 comments on commit 8f249da

Please sign in to comment.