Merge "Make IdentityCredentialStore.getInstance() return null if credstore is not installed." am: a970f218ea

Change-Id: If9079b606b579ec82b4803adf6abfdf205599eeb
This commit is contained in:
Automerger Merge Worker
2020-02-05 16:47:14 +00:00

View File

@@ -38,6 +38,10 @@ class CredstoreIdentityCredentialStore extends IdentityCredentialStore {
ICredentialStoreFactory storeFactory =
ICredentialStoreFactory.Stub.asInterface(
ServiceManager.getService("android.security.identity"));
if (storeFactory == null) {
// This can happen if credstore is not running or not installed.
return null;
}
ICredentialStore credStore = null;
try {