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

Commit cc708340 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Null cursors don't need to be wrapped."

parents fd1dd726 703fe24e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -144,6 +144,10 @@ public class ContentProviderClient implements AutoCloseable {
            }
            final Cursor cursor = mContentProvider.query(mPackageName, url, projection, selection,
                    selectionArgs, sortOrder, remoteCancellationSignal);
            if (cursor == null) {
                return null;
            }

            if ("com.google.android.gms".equals(mPackageName)) {
                // They're casting to a concrete subclass, sigh
                return cursor;