CameraView
CameraView copied to clipboard
Fatal Exception: java.lang.NullPointerException
Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'void android.graphics.SurfaceTexture.setDefaultBufferSize(int, int)' on a null object reference com.otaliastudios.cameraview.engine.Camera2Engine.onStartBind (Camera2Engine.java:517) com.otaliastudios.cameraview.engine.CameraEngine$8.call (CameraEngine.java:470) com.otaliastudios.cameraview.engine.CameraEngine$8.call (CameraEngine.java:466) com.otaliastudios.cameraview.engine.orchestrator.CameraStateOrchestrator$2.call (CameraStateOrchestrator.java:69) com.otaliastudios.cameraview.engine.orchestrator.CameraStateOrchestrator$2.call (CameraStateOrchestrator.java:60) com.otaliastudios.cameraview.engine.orchestrator.CameraOrchestrator$3.run (CameraOrchestrator.java:152) com.otaliastudios.cameraview.internal.WorkerHandler.run (WorkerHandler.java:137) com.otaliastudios.cameraview.engine.orchestrator.CameraOrchestrator.execute (CameraOrchestrator.java:147) com.otaliastudios.cameraview.engine.orchestrator.CameraOrchestrator.access$100 (CameraOrchestrator.java:34) com.otaliastudios.cameraview.engine.orchestrator.CameraOrchestrator$2.run (CameraOrchestrator.java:137)
Getting same error from firebase crashlytics. Not happening while testing.