Skip to content

Commit

Permalink
Fixed subtle bug concerning "SEQ".
Browse files Browse the repository at this point in the history
  • Loading branch information
nomemory authored and Ciobanu, Andrei-Nicolin (UK - EDC) committed May 23, 2017
1 parent 2ee1a0e commit 8315b76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/net/andreinc/mockneat/unit/seq/Seq.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ public Supplier<T> supplier() {
this.iterator = iterable.iterator();
return (T) iterator.next();
}
else
else {
if (after == null) {
return null;
}
return (T) after.get();
}
};
}

Expand Down

0 comments on commit 8315b76

Please sign in to comment.