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

Commit 3953d6e1 authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Add missed check for setAllowedCarriers api.

Test: Checked passing null carriers list.
Bug: 35468257
Change-Id: I9861e9ee4360dc2f37995211dba88ea83e1ed86b
parent 93c4fc94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

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

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

    @Override
    public void setAllowedCarriers(List<CarrierIdentifier> carriers, Message result) {
        checkNotNull(carriers, "Allowed carriers list cannot be null.");
        IRadio radioProxy = getRadioProxy(result);
        if (radioProxy != null) {
            RILRequest rr = obtainRequest(RIL_REQUEST_SET_ALLOWED_CARRIERS, result,