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

Commit aa2d6b86 authored by Jonathan Scott's avatar Jonathan Scott
Browse files

Fix NullPointerException when mLockPatternUtils is not set.

Test: atest LockTaskControllerTest
Fixes: 132593073
Change-Id: Ia1e7cb4de9ec1ac3e7ca0a30d92f546b9301f2ff
parent c3c30eef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -819,7 +819,7 @@ public class LockTaskController {
        } catch (Settings.SettingNotFoundException e) {
            // Log to SafetyNet for b/127605586
            android.util.EventLog.writeEvent(0x534e4554, "127605586", -1, "");
            return mLockPatternUtils.isSecure(USER_CURRENT);
            return getLockPatternUtils().isSecure(USER_CURRENT);
        }
    }