[Video Capture, Android] Fix more nullptr exceptions
Method getCameraParameters() in file VideoCaptureCamera.java may return null on failure. But several call sites assume that this never happens. Crash reports show that it does happen. This CL adds null checks and performs the appropriate failure action. Bug: 879678 Change-Id: I978f45c04696c9a5b272932a945da033bafc6a77 Reviewed-on: https://chromium-review.googlesource.com/1214072Reviewed-by:Emircan Uysaler <emircan@chromium.org> Commit-Queue: Christian Fremerey <chfremer@chromium.org> Cr-Commit-Position: refs/heads/master@{#590007}
Showing
Please register or sign in to comment