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

Commit 146fe44f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Camera: Avoid possible NPE after extension session configuration" am: 8c53fa44

parents 3fdf8ccd 8c53fa44
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -528,8 +528,15 @@ public final class CameraAdvancedExtensionSessionImpl extends CameraExtensionSes
            boolean status = true;
            synchronized (mInterfaceLock) {
                try {
                    if (mSessionProcessor != null) {
                        mSessionProcessor.onCaptureSessionStart(mRequestProcessor);
                        mInitialized = true;
                    } else {
                        Log.v(TAG, "Failed to start capture session, session released before " +
                                "extension start!");
                        status = false;
                        mCaptureSession.close();
                    }
                } catch (RemoteException e) {
                    Log.e(TAG, "Failed to start capture session,"
                            + " extension service does not respond!");