java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference

GitHub | mkutlev | 3 weeks ago
  1. 0

    TextureViewImpl.removeVideo throws NullPointerException

    GitHub | 3 weeks ago | mkutlev
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
  2. 0

    Video URI needs to be provided on initialization

    GitHub | 10 months ago | m-kubis
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
  3. 0

    GitHub comment 172#183354384

    GitHub | 11 months ago | amilopowers
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.ParcelFileDescriptor.getFd()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crashing out on emulator and device

    GitHub | 2 years ago | sononix
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.hardware.camera2.CameraCharacteristics.get(android.hardware.camera2.CameraCharacteristics$Key)' on a null object reference
  6. 0

    BlueCats | ScratchingPost Crashing on Android

    bluecats.com | 1 year ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.ParcelFileDescriptor.getFd()' on a null object reference

    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 android.view.View.setVisibility(int)' on a null object reference

      at com.mklimek.frameviedoview.TextureViewImpl.removeVideo()
    2. com.mklimek.frameviedoview
      TextureViewImpl.onSurfaceTextureDestroyed
      1. com.mklimek.frameviedoview.TextureViewImpl.removeVideo(TextureViewImpl.java:147)
      2. com.mklimek.frameviedoview.TextureViewImpl.onSurfaceTextureDestroyed(TextureViewImpl.java:103)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.view.TextureView.destroySurface(TextureView.java:237)
      2. android.view.TextureView.destroyHardwareResources(TextureView.java:340)
      3. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:216)
      4. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      5. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      6. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      7. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      8. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      9. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      10. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      11. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      12. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      13. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      14. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      15. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      16. android.view.ThreadedRenderer.destroyResources(ThreadedRenderer.java:223)
      17. android.view.ThreadedRenderer.destroyHardwareResources(ThreadedRenderer.java:211)
      18. android.view.ViewRootImpl.destroyHardwareResources(ViewRootImpl.java:965)
      19. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1802)
      20. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1487)
      21. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7450)
      22. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
      23. android.view.Choreographer.doCallbacks(Choreographer.java:695)
      24. android.view.Choreographer.doFrame(Choreographer.java:631)
      25. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
      26. android.os.Handler.handleCallback(Handler.java:739)
      27. android.os.Handler.dispatchMessage(Handler.java:95)
      28. android.os.Looper.loop(Looper.java:158)
      29. android.app.ActivityThread.main(ActivityThread.java:7229)
      29 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames