java.lang.NullPointerException: Attempt to invoke virtual method 'boolean me.lake.librestreaming.client.RESVideoClient.stopPreview()' on a null object reference

GitHub | vishal02gaur | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    NullPointerException: Attempt to invoke virtual method 'boolean me.lake.librestreaming.client.RESVideoClient.stopPreview()' on a null object reference

    GitHub | 6 months ago | vishal02gaur
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean me.lake.librestreaming.client.RESVideoClient.stopPreview()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean me.lake.librestreaming.client.RESVideoClient.stopPreview()' on a null object reference

      at me.lake.librestreaming.client.RESClient.stopPreview()
    2. me.lake.librestreaming
      BaseStreamingActivity.onSurfaceTextureDestroyed
      1. me.lake.librestreaming.client.RESClient.stopPreview(RESClient.java:133)
      2. me.lake.librestreaming.sample.BaseStreamingActivity$override.onSurfaceTextureDestroyed(BaseStreamingActivity.java:252)
      3. me.lake.librestreaming.sample.BaseStreamingActivity$override.access$dispatch(BaseStreamingActivity.java)
      4. me.lake.librestreaming.sample.BaseStreamingActivity.onSurfaceTextureDestroyed(BaseStreamingActivity.java:0)
      4 frames
    3. Android Platform
      ActivityThread.handleRelaunchActivity
      1. android.view.TextureView.destroySurface(TextureView.java:237)
      2. android.view.TextureView.onDetachedFromWindowInternal(TextureView.java:227)
      3. android.view.View.dispatchDetachedFromWindow(View.java:14578)
      4. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      5. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      6. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      7. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      8. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      9. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      10. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      11. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      12. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3065)
      13. android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3080)
      14. android.view.ViewRootImpl.doDie(ViewRootImpl.java:5618)
      15. android.view.ViewRootImpl.die(ViewRootImpl.java:5595)
      16. android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:397)
      17. android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:352)
      18. android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:116)
      19. android.app.ActivityThread.cleanUpPendingRemoveWindows(ActivityThread.java:3133)
      20. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3200)
      21. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
      22. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4098)
      22 frames