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

Commit 6c5bb64c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "ril: add a checkNotNull for setAllowedCarriers params."

parents e70c802b 5ecf50e3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;

import static com.android.internal.telephony.RILConstants.*;
import static com.android.internal.util.Preconditions.checkNotNull;

/**
 * {@hide}
@@ -4875,6 +4876,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {

    @Override
    public void setAllowedCarriers(List<CarrierIdentifier> carriers, Message response) {
        checkNotNull(carriers, "Allowed carriers list cannot be null.");
        RILRequest rr = RILRequest.obtain(RIL_REQUEST_SET_ALLOWED_CARRIERS, response,
                mRILDefaultWorkSource);
        rr.mParcel.writeInt(carriers.size()); /* len_allowed_carriers */