java.lang.NullPointerException

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. 0

    null pointer in camera var

    Stack Overflow | 5 months ago | shriyans kapoor
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.example.nick.cfdo.CameraPreview.surfaceCreated()
    2. com.example.nick
      CameraPreview.surfaceCreated
      1. com.example.nick.cfdo.CameraPreview.surfaceCreated(CameraPreview.java:32)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.view.SurfaceView.updateWindow(SurfaceView.java:572)
      2. android.view.SurfaceView.access$000(SurfaceView.java:86)
      3. android.view.SurfaceView$3.onPreDraw(SurfaceView.java:175)
      4. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)
      5. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1871)
      6. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
      7. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
      8. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
      9. android.view.Choreographer.doCallbacks(Choreographer.java:574)
      10. android.view.Choreographer.doFrame(Choreographer.java:544)
      11. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
      12. android.os.Handler.handleCallback(Handler.java:733)
      13. android.os.Handler.dispatchMessage(Handler.java:95)
      14. android.os.Looper.loop(Looper.java:136)
      15. android.app.ActivityThread.main(ActivityThread.java:5017)
      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:779)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame