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

Commit b6ee56d1 authored by Austin Borger's avatar Austin Borger Committed by Android (Google) Code Review
Browse files

Merge "Check for null in AttributionSource#Builder#setNextAttributionSource" into main

parents b92aff67 e3d9df7a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -753,6 +753,9 @@ public final class AttributionSource implements Parcelable {
        @FlaggedApi(Flags.FLAG_SET_NEXT_ATTRIBUTION_SOURCE)
        public @NonNull Builder setNextAttributionSource(@NonNull AttributionSource value) {
            checkNotUsed();
            if (value == null) {
                throw new IllegalArgumentException("Null AttributionSource not permitted.");
            }
            mBuilderFieldsSet |= 0x20;
            mAttributionSourceState.next =
                    new AttributionSourceState[]{value.mAttributionSourceState};