java.lang.NullPointerException: Attempt to invoke virtual method 'void com.bluelinelabs.conductor.internal.LifecycleHandler.unregisterForActivityResults(java.lang.String)' on a null object reference

GitHub | gabrielittner | 5 months ago
  1. 0

    NPE when Conductor tries to unregister from Activity results

    GitHub | 5 months ago | gabrielittner
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.bluelinelabs.conductor.internal.LifecycleHandler.unregisterForActivityResults(java.lang.String)' on a null object reference
  2. 0
    samebug tip
    Use 'dialog' to access views from custom_layout layout.
  3. 0

    Demo crashing on API 25

    GitHub | 1 month ago | JoniDS
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.bluelinelabs.conductor.internal.LifecycleHandler.unregisterForActivityResults(java.lang.String)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    The resource was accessed after it was dismissed.
  6. 0
    samebug tip
    Initialize the variable before calling a method on it.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.bluelinelabs.conductor.internal.LifecycleHandler.unregisterForActivityResults(java.lang.String)' on a null object reference

      at com.bluelinelabs.conductor.ActivityHostedRouter.unregisterForActivityResults()
    2. com.bluelinelabs.conductor
      Controller$7.onViewDetachedFromWindow
      1. com.bluelinelabs.conductor.ActivityHostedRouter.unregisterForActivityResults(ActivityHostedRouter.java:78)
      2. com.bluelinelabs.conductor.Controller.performDestroy(Controller.java:854)
      3. com.bluelinelabs.conductor.Controller.removeViewReference(Controller.java:795)
      4. com.bluelinelabs.conductor.Controller.detach(Controller.java:765)
      5. com.bluelinelabs.conductor.Controller$7.onViewDetachedFromWindow(Controller.java:834)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchDetachedFromWindow(View.java:13588)
      2. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2838)
      3. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      4. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      5. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      6. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      7. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      8. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      9. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2835)
      10. android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2984)
      11. android.view.ViewRootImpl.doDie(ViewRootImpl.java:5502)
      12. android.view.ViewRootImpl.die(ViewRootImpl.java:5479)
      13. android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:369)
      14. android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:324)
      15. android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:116)
      16. android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3775)
      17. android.app.ActivityThread.access$1500(ActivityThread.java:154)
      18. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1375)
      19. android.os.Handler.dispatchMessage(Handler.java:102)
      20. android.os.Looper.loop(Looper.java:135)
      21. android.app.ActivityThread.main(ActivityThread.java:5294)
      21 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames