This is an automated email from the ASF dual-hosted git repository.
npeltier pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-pipes.git
The following commit(s) were added to refs/heads/master by this push:
new 7cbd28a SLING-7719 fix empty containers
7cbd28a is described below
commit 7cbd28a500aa80812bb4f85db42c38f48d012893
Author: Nicolas Peltier <[email protected]>
AuthorDate: Fri Jun 8 16:05:25 2018 +0200
SLING-7719 fix empty containers
---
src/main/java/org/apache/sling/pipes/ContainerPipe.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/pipes/ContainerPipe.java
b/src/main/java/org/apache/sling/pipes/ContainerPipe.java
index edc9fab..0c5c72f 100644
--- a/src/main/java/org/apache/sling/pipes/ContainerPipe.java
+++ b/src/main/java/org/apache/sling/pipes/ContainerPipe.java
@@ -80,7 +80,10 @@ public class ContainerPipe extends BasePipe {
@Override
public Iterator<Resource> getOutput() {
- return new ContainerResourceIterator(this, sleep);
+ if (pipeList.size() > 0) {
+ return new ContainerResourceIterator(this, sleep);
+ }
+ return EMPTY_ITERATOR;
}
/**
--
To stop receiving notification emails like this one, please contact
[email protected].