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

Commit d9a2ab5f authored by Becca Hughes's avatar Becca Hughes
Browse files

Fix exception in getting capabilities

Test: make
Bug: 272525996
Change-Id: Ic7b28f8bb313e290a932c50376c1b287b44e5862
parent 6bc00907
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -357,16 +357,6 @@ public final class CredentialProviderInfoFactory {
            Log.e(TAG, "Failed to get capabilities: ", e);
        }

        try {
            String[] discovered =
                    metadata.getStringArray(CredentialProviderService.CAPABILITY_META_DATA_KEY);
            if (discovered != null) {
                capabilities.addAll(Arrays.asList(discovered));
            }
        } catch (Resources.NotFoundException | NullPointerException e) {
            Log.e(TAG, "Failed to get capabilities: ", e);
        }

        if (capabilities.size() == 0) {
            Log.e(TAG, "No capabilities found for provider:" + serviceInfo);
            return output;