Skip to content

Commit 8315b76

Browse files
nomemoryCiobanu, Andrei-Nicolin (UK - EDC)
authored andcommitted
Fixed subtle bug concerning "SEQ".
1 parent 2ee1a0e commit 8315b76

File tree

1 file changed

+5
-1
lines changed
  • src/main/java/net/andreinc/mockneat/unit/seq

1 file changed

+5
-1
lines changed

src/main/java/net/andreinc/mockneat/unit/seq/Seq.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,12 @@ public Supplier<T> supplier() {
8282
this.iterator = iterable.iterator();
8383
return (T) iterator.next();
8484
}
85-
else
85+
else {
86+
if (after == null) {
87+
return null;
88+
}
8689
return (T) after.get();
90+
}
8791
};
8892
}
8993

0 commit comments

Comments
 (0)