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

Commit 824838d7 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Avoid NPE when callers send null selection args.

parent 3a814141
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -545,8 +545,12 @@ public class ContentProviderOperation implements Parcelable {
                        "only updates, deletes, and asserts can have selections");
            }
            mSelection = selection;
            if (selectionArgs == null) {
                mSelectionArgs = null;
            } else {
                mSelectionArgs = new String[selectionArgs.length];
                System.arraycopy(selectionArgs, 0, mSelectionArgs, 0, selectionArgs.length);
            }
            return this;
        }