Skip to content

Commit 2a950f4

Browse files
author
akarnokd
committed
Missed a return in case of a null value.
1 parent 8a19ab7 commit 2a950f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/reactivex/internal/operators/PublisherGenerate.java

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public void onSubscribe(Subscription s) {
174174
public void onNext(T t) {
175175
if (t == null) {
176176
onError(new NullPointerException());
177+
return;
177178
}
178179
actual.onNext(t);
179180
}

0 commit comments

Comments
 (0)