Skip to content
Snippets Groups Projects
Commit 93c2a8fe authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

changed exception type

parent bd5678e5
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ public final class InitialElementProducer<T> extends AbstractProducerStage<T> {
@Override
public void onStarting() throws Exception {
if (elements == null) {
throw new NullPointerException("iter must not be null");
throw new IllegalArgumentException("iter must not be null");
}
super.onStarting();
}
......
......@@ -40,7 +40,7 @@ public final class IterableProducer<T> extends AbstractProducerStage<T> {
@Override
public void onStarting() throws Exception {
if (iter == null) {
throw new NullPointerException("iter must not be null");
throw new IllegalArgumentException("iter must not be null");
}
super.onStarting();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment