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

Commit 133bc31d authored by Roman Birg's avatar Roman Birg
Browse files

LockPatternUtils: don't crash when no profile is selected



If there's no profile currently active, then return the default lock
mode.

Change-Id: Ifb26438d055a7fb72c6fdaa6586b445f5798b102
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 95cb66ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1253,7 +1253,7 @@ public class LockPatternUtils {
            return Profile.LockMode.DEFAULT;
        }
        final Profile profile = mProfileManager.getActiveProfile();
        return profile.getScreenLockMode();
        return profile == null ? Profile.LockMode.DEFAULT : profile.getScreenLockMode();
    }

    /**