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

Commit 703fe24e authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Null cursors don't need to be wrapped.

Change-Id: I59b604a60a066c2d808a796658757af952ef913c
parent e46fbfaf
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;