We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebec0b2 commit a588c66Copy full SHA for a588c66
src/main/java/io/reactivex/subjects/PublishSubject.java
@@ -176,7 +176,7 @@ public void onNext(T t) {
176
return;
177
}
178
if (t == null) {
179
- onError(new NullPointerException());
+ onError(new NullPointerException("Subject got a null value. Null values are generally not allowed in 2.x operators and sources."));
180
181
182
for (PublishDisposable<T> s : subscribers.get()) {
0 commit comments