Skip to content

Commit 1875256

Browse files
authored
2.x: fix TestSubscriber/Observer message texts (#4921)
1 parent 2332df2 commit 1875256

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/io/reactivex/observers/TestObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void onNext(T t) {
149149
values.add(t);
150150

151151
if (t == null) {
152-
errors.add(new NullPointerException("onNext received a null Subscription"));
152+
errors.add(new NullPointerException("onNext received a null value"));
153153
}
154154

155155
actual.onNext(t);

src/main/java/io/reactivex/subscribers/TestSubscriber.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void onNext(T t) {
207207
values.add(t);
208208

209209
if (t == null) {
210-
errors.add(new NullPointerException("onNext received a null Subscription"));
210+
errors.add(new NullPointerException("onNext received a null value"));
211211
}
212212

213213
actual.onNext(t);
@@ -226,7 +226,7 @@ public void onError(Throwable t) {
226226
errors.add(t);
227227

228228
if (t == null) {
229-
errors.add(new IllegalStateException("onError received a null Subscription"));
229+
errors.add(new IllegalStateException("onError received a null Throwable"));
230230
}
231231

232232
actual.onError(t);

0 commit comments

Comments
 (0)