Skip to content

Commit

Permalink
2.x: fix TestSubscriber/Observer message texts (#4921)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Dec 15, 2016
1 parent 2332df2 commit 1875256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/reactivex/observers/TestObserver.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void onNext(T t) {
values.add(t);

if (t == null) {
errors.add(new NullPointerException("onNext received a null Subscription"));
errors.add(new NullPointerException("onNext received a null value"));
}

actual.onNext(t);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/subscribers/TestSubscriber.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void onNext(T t) {
values.add(t);

if (t == null) {
errors.add(new NullPointerException("onNext received a null Subscription"));
errors.add(new NullPointerException("onNext received a null value"));
}

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

if (t == null) {
errors.add(new IllegalStateException("onError received a null Subscription"));
errors.add(new IllegalStateException("onError received a null Throwable"));
}

actual.onError(t);
Expand Down

0 comments on commit 1875256

Please sign in to comment.