Merge "Do not throw KeystoreException for when a key does not exist" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-23 20:03:45 +00:00
committed by Android (Google) Code Review

View File

@@ -561,7 +561,7 @@ public class RecoveryController {
throws InternalRecoveryServiceException, UnrecoverableKeyException {
try {
String grantAlias = mBinder.getKey(alias);
if (grantAlias == null) {
if (grantAlias == null || "".equals(grantAlias)) {
return null;
}
return getKeyFromGrant(grantAlias);