Merge "Do a null check before returning the primary providers" into udc-dev am: cc87e369b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23035616 Change-Id: Iac46711cdff6024f22a6fbf4bb82efd72478acbc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -290,6 +290,9 @@ public final class CredentialManagerService
|
|||||||
mContext, Settings.Secure.CREDENTIAL_SERVICE_PRIMARY,
|
mContext, Settings.Secure.CREDENTIAL_SERVICE_PRIMARY,
|
||||||
/* isMultipleMode= */ true);
|
/* isMultipleMode= */ true);
|
||||||
String[] serviceNames = resolver.readServiceNameList(resolvedUserId);
|
String[] serviceNames = resolver.readServiceNameList(resolvedUserId);
|
||||||
|
if (serviceNames == null) {
|
||||||
|
return new HashSet<String>();
|
||||||
|
}
|
||||||
return new HashSet<String>(Arrays.asList(serviceNames));
|
return new HashSet<String>(Arrays.asList(serviceNames));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user