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

Skip to content
Commit 08bcaf4b authored by Geoffrey Boullanger's avatar Geoffrey Boullanger
Browse files

Fix crash when mcc is null in MccTable.getCountryCodeForMcc.

Previously, if SubscriptionInfo.getMccString() returns null, the method would call getCountryCodeForMcc with null, which could potentially lead to a null pointer exception. This CL modifies the method to return an empty string if the mcc is null, which is consistent with the previous implementation of countryCodeForMcc.

Note that the method has been marked as @NonNull since 2019 but the annotation is not enforced.

Bug: 394271686
Change-Id: I6426eb9d88427fc4fdd699b15518d6a5bb650f99
Test: atest
Flag: com.android.internal.telephony.flags.use_i18n_for_mcc_mapping
parent 222dcd43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment