-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix NPE in the CitcuitBreakerRetryPolicy
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
/* | ||
* Original Author -> Harry Yang ([email protected]) https://taketoday.cn | ||
* Copyright © Harry Yang & 2017 - 2023 All Rights Reserved. | ||
* | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER | ||
* Copyright 2017 - 2023 the original author or authors. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -31,6 +28,7 @@ | |
|
||
/** | ||
* @author Dave Syer | ||
* @author <a href="https://github.com/TAKETODAY">Harry Yang</a> | ||
* @since 4.0 | ||
*/ | ||
@SuppressWarnings("serial") | ||
|
@@ -122,7 +120,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); | ||
|