Skip to content

Commit

Permalink
Fix nullpointer at shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikJannsen committed Mar 28, 2024
1 parent ec0bf4b commit 97821de
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ public void clear() {

@Override
public CompletableFuture<Boolean> shutdown() {
authorizedAlertDataSetPin.unbind();
unconsumedAlertsPin.unbind();
if (authorizedAlertDataSetPin != null) {
authorizedAlertDataSetPin.unbind();
unconsumedAlertsPin.unbind();
}

return CompletableFuture.completedFuture(true);
}
Expand Down

0 comments on commit 97821de

Please sign in to comment.