Skip to content

Commit

Permalink
GH-403: Fix NPE in the CitcuitBreakerRetryPolicy
Browse files Browse the repository at this point in the history
Fixes #403

The `openTimeout` resolution logic uses `this.resetTimeoutSupplier` by mistake
  • Loading branch information
AbelPelser authored Nov 22, 2023
1 parent 8f4c603 commit 5d59e3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public RetryContext open(RetryContext parent) {
resetTimeout = this.resetTimeoutSupplier.get();
}
long openTimeout = this.openTimeout;
if (this.resetTimeoutSupplier != null) {
if (this.openTimeoutSupplier != null) {
openTimeout = this.openTimeoutSupplier.get();
}
return new CircuitBreakerRetryContext(parent, this.delegate, resetTimeout, openTimeout);
Expand Down

0 comments on commit 5d59e3f

Please sign in to comment.