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 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Rotation while taking a picture causes an internal crash

    GitHub | 8 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 | 8 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

    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