You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no checks for errors when AVCaptureDeviceInput *deviceInput = [AVCaptureDeviceInput deviceInputWithDevice:device error:nil] so if an error occurs, deviceInput will be nil and the following call to [_session addInput:deviceInput] will crash.
We cannot reproduce it on development, but we see several crashes on our production app on crashlytics:
There are no checks for errors when
AVCaptureDeviceInput *deviceInput = [AVCaptureDeviceInput deviceInputWithDevice:device error:nil]
so if an error occurs, deviceInput will be nil and the following call to[_session addInput:deviceInput]
will crash.We cannot reproduce it on development, but we see several crashes on our production app on crashlytics:
Is there any reason why there are no such checks?
Thanks in advance
The text was updated successfully, but these errors were encountered: