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

Commit 1a7938c2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check in biometric service"

parents d01084eb e36c05fb
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -474,9 +474,12 @@ public class BiometricService extends SystemService {
                                // Send errors after the dialog is dismissed.
                                mHandler.postDelayed(() -> {
                                    try {
                                        mCurrentAuthSession.mClientReceiver.onError(error, message);
                                        if (mCurrentAuthSession != null) {
                                            mCurrentAuthSession.mClientReceiver.onError(error,
                                                    message);
                                            mCurrentAuthSession.mState = STATE_AUTH_IDLE;
                                            mCurrentAuthSession = null;
                                        }
                                    } catch (RemoteException e) {
                                        Slog.e(TAG, "Remote exception", e);
                                    }