java.lang.NullPointerException

GitHub | nejifresh | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    GitHub comment 19#263539702

    GitHub | 4 months ago | huxaiphaer
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaPlayer.setDisplay(android.view.SurfaceHolder)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.github.rtoshiro.view.video.FullscreenVideoView.surfaceCreated()
    2. com.github.rtoshiro
      FullscreenVideoView.surfaceCreated
      1. com.github.rtoshiro.view.video.FullscreenVideoView.surfaceCreated(FullscreenVideoView.java:176)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.view.SurfaceView.updateWindow(SurfaceView.java:662)
      2. android.view.SurfaceView.access$000(SurfaceView.java:90)
      3. android.view.SurfaceView$3.onPreDraw(SurfaceView.java:195)
      4. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)
      5. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2191)
      6. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1189)
      7. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6223)
      8. android.view.Choreographer$CallbackRecord.run(Choreographer.java:788)
      9. android.view.Choreographer.doCallbacks(Choreographer.java:591)
      10. android.view.Choreographer.doFrame(Choreographer.java:560)
      11. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:774)
      12. android.os.Handler.handleCallback(Handler.java:808)
      13. android.os.Handler.dispatchMessage(Handler.java:103)
      14. android.os.Looper.loop(Looper.java:193)
      15. android.app.ActivityThread.main(ActivityThread.java:5336)
      15 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame