Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JITSI: catch all exceptions that occur on CaptureSession creation
For some devices the captureFormat is never initialized,so captureFormat.width throws NPE. Fatal Exception: java.lang.NullPointerException Attempt to read from field 'int org.webrtc.CameraEnumerationAndroid$CaptureFormat.width' on a null object reference org.webrtc.Camera2Session$CameraStateCallback.onOpened (Camera2Session.java:122) android.hardware.camera2.impl.CameraDeviceImpl$1.run (CameraDeviceImpl.java:151) android.os.Handler.handleCallback (Handler.java:938) android.os.Handler.dispatchMessage (Handler.java:99) android.os.Looper.loop (Looper.java:246) android.os.HandlerThread.run (HandlerThread.java:67)
- Loading branch information