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

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

Merge "Fix crash when potential null authority passed to build rootsUri" into main

parents 84cfcc88 f8e0b29f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1238,7 +1238,10 @@ public final class DocumentsContract {
        return false;
    }

    private static boolean isDocumentsProvider(Context context, String authority) {
    private static boolean isDocumentsProvider(Context context, @Nullable String authority) {
        if (authority == null) {
            return false;
        }
        final Intent intent = new Intent(PROVIDER_INTERFACE);
        final List<ResolveInfo> infos = context.getPackageManager()
                .queryIntentContentProviders(intent, 0);