ResultChainingIterator.add should check if the argument iterator is null[]
Closes from arekusuri/GOBBLIN-1097-fix-
iterator-null
@@ -45,8 +45,10 @@ public class ResultChainingIterator implements Iterator<JsonElement> {
}
public void add(Iterator<JsonElement> iter) {
+ if (iter != null) {
this.iter = Iterators.concat(this.iter, iter);
}
+ }
@Override
public boolean hasNext() {
