Commit 7aacfa52 authored by Christian Wulf's avatar Christian Wulf

added a warning to the InitialElementProducer

parent bcef6d06
......@@ -31,7 +31,10 @@ public class InitialElementProducer<T> extends AbstractProducerStage<T> {
public InitialElementProducer(final Collection<T> elements) {
if (elements == null) {
throw new IllegalArgumentException("4002 - The given iterable must not be null.");
throw new IllegalArgumentException("4002 - The given collection must not be null.");
if (elements.isEmpty()) {
logger.warn("The given collection is empty! This stage will not output anything.");
this.elements = elements;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment