Skip to content

Commit 11b08f2

Browse files
jacobdufault-googleJacob Dufault
authored and
Jacob Dufault
committed
cros: Fix login crash when determining if PIN is supported.
[email protected] (cherry picked from commit 4c830fc) Bug: 847040 Change-Id: Id32b31abdfa1dff8e8229bfb4eaa610d782d4789 Reviewed-on: https://chromium-review.googlesource.com/1077017 Reviewed-by: Achuith Bhandarkar <[email protected]> Reviewed-by: Xiyuan Xia <[email protected]> Commit-Queue: Jacob Dufault <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#562611} Reviewed-on: https://chromium-review.googlesource.com/1080038 Reviewed-by: Jacob Dufault <[email protected]> Cr-Commit-Position: refs/branch-heads/3440@{#52} Cr-Branched-From: 010ddcf-refs/heads/master@{#561733}
1 parent b828621 commit 11b08f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chrome/browser/chromeos/login/quick_unlock/pin_backend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ bool PinBackend::ShouldUseCryptohome(const AccountId& account_id) {
226226
// the prefs backend from a previous version. If that's the case, we should
227227
// talk to the prefs backend instead of the cryptohome backend.
228228
QuickUnlockStorage* storage = GetPrefsBackend(account_id);
229-
return !storage->pin_storage_prefs()->IsPinSet();
229+
return !storage || !storage->pin_storage_prefs()->IsPinSet();
230230
}
231231

232232
} // namespace quick_unlock

0 commit comments

Comments
 (0)