java.lang.NullPointerException: Attempt to invoke virtual method 'com.commonsware.cwac.cam2.util.Size com.commonsware.cwac.cam2.CameraSession.getPreviewSize()' on a null object reference

GitHub | alecio | 5 months ago
  1. 0

    Rotation while taking a picture causes an internal crash

    GitHub | 5 months ago | alecio
    java.lang.NullPointerException: Attempt to invoke virtual method 'com.commonsware.cwac.cam2.util.Size com.commonsware.cwac.cam2.CameraSession.getPreviewSize()' on a null object reference
  2. 0

    Timing Issue with CameraEngine.OpenedEvent?

    GitHub | 6 months ago | commonsguy
    java.lang.NullPointerException: Attempt to invoke virtual method 'com.commonsware.cwac.cam2.util.Size com.commonsware.cwac.cam2.CameraSession.getPreviewSize()' on a null object reference
  3. 0

    CameraActivity is not started The following steps I followed which are as given below:

    GitHub | 7 months ago | DanishAmjad12
    java.lang.RuntimeException: Unable to stop activity {com.test.android.test/com.commonsware.cwac.cam2.CameraActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.commonsware.cwac.cam2.CameraController.postError(int, java.lang.Exception)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NPE when device is running low on memory

    GitHub | 7 months ago | DanishAmjad12
    java.lang.RuntimeException: Unable to stop activity {com.test.android.test/com.commonsware.cwac.cam2.CameraActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.commonsware.cwac.cam2.AbstractCameraActivity.canSwitchSources()' on a null object reference
  6. 0

    GitHub comment 190#216124263

    GitHub | 7 months ago | DanishAmjad12
    java.lang.RuntimeException: Unable to stop activity {com.servicelive.android.servicelivepro/com.commonsware.cwac.cam2.CameraActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.commonsware.cwac.cam2.AbstractCameraActivity.canSwitchSources()' 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 'com.commonsware.cwac.cam2.util.Size com.commonsware.cwac.cam2.CameraSession.getPreviewSize()' on a null object reference

      at com.commonsware.cwac.cam2.CameraController.onEventMainThread()
    2. com.commonsware.cwac
      CameraController.onEventMainThread
      1. com.commonsware.cwac.cam2.CameraController.onEventMainThread(CameraController.java:375)
      1 frame
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    4. de.greenrobot.event
      HandlerPoster.handleMessage
      1. de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:498)
      2. de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:492)
      3. de.greenrobot.event.HandlerPoster.handleMessage(HandlerPoster.java:67)
      3 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:148)
      3. android.app.ActivityThread.main(ActivityThread.java:5417)
      3 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames