java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference

GitHub | jeffreyrajanofficial | 2 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. 0

    android.media.ImageReader.getSurface()' on a null object reference

    GitHub | 2 months ago | jeffreyrajanofficial
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference
  2. 0

    App crashes on image capture

    GitHub | 2 years ago | leapfrog-santosh
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
  3. 0

    NPE com.commonsware.cwac.cam2.CameraTwoEngine$CapturePictureTransaction.unlockFocus (CameraTwoEngine.java:714)

    GitHub | 3 months ago | shahzadyounas
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NULL reference exception on takePicture()

    GitHub | 5 months ago | remq
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference
  6. 0

    GitHub comment 55#268214701

    GitHub | 2 months ago | DaviddeMiguel
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' 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 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference

      at obs.imergency.sprint2.customcamera.internal.Camera2Fragment.captureStillPicture()
    2. obs.imergency.sprint2
      Camera2Fragment$3.onCaptureProgressed
      1. obs.imergency.sprint2.customcamera.internal.Camera2Fragment.captureStillPicture(Camera2Fragment.java:975)
      2. obs.imergency.sprint2.customcamera.internal.Camera2Fragment.access$600(Camera2Fragment.java:75)
      3. obs.imergency.sprint2.customcamera.internal.Camera2Fragment$3.process(Camera2Fragment.java:249)
      4. obs.imergency.sprint2.customcamera.internal.Camera2Fragment$3.onCaptureProgressed(Camera2Fragment.java:283)
      4 frames
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    4. Android
      HandlerDispatcher$1.run
      1. android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
      2. android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
      2 frames
    5. Android Platform
      HandlerThread.run
      1. android.os.Handler.handleCallback(Handler.java:751)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames