You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing an NPE from the s field of SerializedObserver not being set when used with .withLatestFrom(). Digging around in the source, it looks like it internally is not calling onSubscribe() to the actual observer field.
Example trace looks like this:
java.lang.NullPointerException
at io.reactivex.observers.SerializedObserver.onNext(SerializedObserver.java:91)
at io.reactivex.internal.operators.observable.ObservableWithLatestFrom$WithLatestFromObserver.onNext(ObservableWithLatestFrom.java:101)
at io.reactivex.internal.operators.observable.ObservableFilter$FilterObserver.onNext(ObservableFilter.java:51)
at io.reactivex.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:63)
at io.reactivex.subjects.PublishSubject$PublishDisposable.onNext(PublishSubject.java:263)
at io.reactivex.subjects.PublishSubject.onNext(PublishSubject.java:182)
The snippet in SerializedObserver that corresponds to
@OverridepublicvoidonNext(Tt) {
if (done) {
return;
}
if (t == null) {
s.dispose(); // <----- this line, "s" is null because onSubscribe was never calledonError(newNullPointerException("onNext called with null. Null values are generally not allowed in 2.x operators and sources."));
return;
}
The text was updated successfully, but these errors were encountered:
Specifically, the static WithLatestFromObserver class in ObservableWithLatestFrom never calls OnSubscribe on its actual before sending other events to it.
Uh oh!
There was an error while loading. Please reload this page.
We're seeing an NPE from the
s
field ofSerializedObserver
not being set when used with.withLatestFrom()
. Digging around in the source, it looks like it internally is not callingonSubscribe()
to theactual
observer field.Example trace looks like this:
The snippet in
SerializedObserver
that corresponds toThe text was updated successfully, but these errors were encountered: