File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/src/main/java/io/dapr/durabletask Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ public RetryPolicy setMaxRetryInterval(@Nullable Duration maxRetryInterval) {
109
109
* @return this retry policy object
110
110
*/
111
111
public RetryPolicy setRetryTimeout (Duration retryTimeout ) {
112
- if (retryTimeout != null && retryTimeout .compareTo (this .firstRetryInterval ) < 0 ) {
113
- throw new IllegalArgumentException ("The value for retryTimeout must be greater than or equal to the value for firstRetryInterval." );
112
+ if (retryTimeout == null || retryTimeout .compareTo (this .firstRetryInterval ) < 0 ) {
113
+ throw new IllegalArgumentException ("The value for retryTimeout cannot be null and must be greater than or equal to the value for firstRetryInterval." );
114
114
}
115
115
this .retryTimeout = retryTimeout ;
116
116
return this ;
You can’t perform that action at this time.
0 commit comments