We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d2db60 + 26e6835 commit 797761dCopy full SHA for 797761d
src/main/java/org/dataloader/strategy/BreadthFirstChainedDispatchStrategy.java
@@ -120,6 +120,12 @@ public Builder(ScheduledExecutorService scheduledExecutorService) {
120
}
121
122
public Builder setFallbackTimeout(Duration fallbackTimeout) {
123
+ if (fallbackTimeout == null) {
124
+ throw new IllegalArgumentException("fallbackTimeout must not be null");
125
+ }
126
+ if (fallbackTimeout.isZero() || fallbackTimeout.isNegative()) {
127
+ throw new IllegalArgumentException("fallbackTimeout must be a positive duration");
128
129
this.fallbackTimeout = Assertions.nonNull(fallbackTimeout);
130
return this;
131
0 commit comments