java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

Stack Overflow | fobo66 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NullPointerException in Retrofit2 after converting response

    Stack Overflow | 6 months ago | fobo66
    java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.
  2. 0

    OnErrorNotImplementedException somehow still being called with included error handling

    Stack Overflow | 4 months ago | Orbit
    java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

    Root Cause Analysis

    1. rx.exceptions.OnErrorNotImplementedException

      Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

      at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call()
    2. rxjava
      OperatorObserveOn$ObserveOnSubscriber.call
      1. rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386)
      2. rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383)
      3. rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44)
      4. rx.observers.SafeSubscriber._onError(SafeSubscriber.java:157)
      5. rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120)
      6. rx.exceptions.Exceptions.throwOrReport(Exceptions.java:204)
      7. rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:144)
      8. rx.internal.operators.OperatorFilter$FilterSubscriber.onNext(OperatorFilter.java:73)
      9. rx.internal.operators.OnSubscribeCombineLatest$LatestCoordinator.drain(OnSubscribeCombineLatest.java:286)
      10. rx.internal.operators.OnSubscribeCombineLatest$LatestCoordinator.combine(OnSubscribeCombineLatest.java:228)
      11. rx.internal.operators.OnSubscribeCombineLatest$CombinerSubscriber.onNext(OnSubscribeCombineLatest.java:383)
      12. rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
      13. rx.internal.operators.OperatorFilter$FilterSubscriber.onNext(OperatorFilter.java:73)
      14. rx.internal.operators.OperatorMaterialize$ParentSubscriber.onNext(OperatorMaterialize.java:113)
      15. rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:227)
      15 frames
    3. rxandroid
      LooperScheduler$ScheduledAction.run
      1. rx.android.schedulers.LooperScheduler$ScheduledAction.run(LooperScheduler.java:107)
      1 frame