Skip to content

Commit

Permalink
fix: condition in unsetTamperDetectionService
Browse files Browse the repository at this point in the history
Signed-off-by: MMaiero <[email protected]>
  • Loading branch information
MMaiero committed Nov 5, 2024
1 parent 62fbec0 commit 79ea4ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public void setTamperDetectionService(final TamperDetectionService tamperDetecti
}

public void unsetTamperDetectionService(final TamperDetectionService tamperDetectionService) {
if (this.tamperDetectionServices != null && this.tamperDetectionServices.contains(tamperDetectionService)) {
if (!this.tamperDetectionServices.isEmpty() && this.tamperDetectionServices.contains(tamperDetectionService)) {
synchronized (this.tamperDetectionServices) {
this.tamperDetectionServices.remove(tamperDetectionService);
}
Expand Down

0 comments on commit 79ea4ba

Please sign in to comment.