Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57c9ffcb authored by Mark Harman's avatar Mark Harman
Browse files

Fix exception from Google Play.

parent 98811743
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -41,6 +41,11 @@
<p>&lt; <small><a href="index.html">Main Page.</a></small></p>

<pre>
Version 1.43.3 (Work in progress)

FIXED   Fixed some crashes.
ADDED   Added video capture rate, capture rate factor and high speed info to About debug dialog.

Version 1.43.2 (2018/04/13)

FIXED   Fixed some crashes.
+17 −4
Original line number Diff line number Diff line
@@ -3687,11 +3687,24 @@ public class CameraController2 extends CameraController {
				is_video_high_speed = true;
			}
			else {
        		try {
					camera.createCaptureSession(surfaces,
						myStateCallback,
						handler);
					is_video_high_speed = false;
				}
				catch(NullPointerException e) {
					// have had this from some devices on Google Play, from deep within createCaptureSession
					// note, we put the catch here rather than below, so as to not mask nullpointerexceptions
					// from my code
					if( MyDebug.LOG ) {
						Log.e(TAG, "NullPointerException trying to create capture session");
						Log.e(TAG, "message: " + e.getMessage());
					}
					e.printStackTrace();
					throw new CameraControllerException();
				}
			}
			if( MyDebug.LOG )
				Log.d(TAG, "wait until session created...");
			synchronized( create_capture_session_lock ) {