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

Commit eaba7be2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "BiometricScheduler: fix the NPE problem in startWatchdog method." into main

parents 057be0a6 05d11443
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -677,10 +677,11 @@ public class BiometricScheduler<T, U> {
     * Start the timeout for the watchdog.
     */
    public void startWatchdog() {
        if (mCurrentOperation == null) {
        final BiometricSchedulerOperation operation = mCurrentOperation;
        if (operation == null) {
            Slog.e(TAG, "Current operation is null,no need to start watchdog");
            return;
        }
        final BiometricSchedulerOperation operation = mCurrentOperation;
        mHandler.postDelayed(() -> {
            if (operation == mCurrentOperation && !operation.isFinished()) {
                Counter.logIncrement("biometric.value_scheduler_watchdog_triggered_count");