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

Commit cc87e369 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do a null check before returning the primary providers" into udc-dev

parents 5c406a3c bcd60864
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -290,6 +290,9 @@ public final class CredentialManagerService
                mContext, Settings.Secure.CREDENTIAL_SERVICE_PRIMARY,
                /* isMultipleMode= */ true);
        String[] serviceNames = resolver.readServiceNameList(resolvedUserId);
        if (serviceNames == null) {
            return new HashSet<String>();
        }
        return new HashSet<String>(Arrays.asList(serviceNames));
    }