From f23f999e1cf1c7a5889e91389009cef21b594b4a Mon Sep 17 00:00:00 2001 From: Bonian Chen Date: Thu, 9 Sep 2021 08:14:19 +0000 Subject: [PATCH] [Settings] Avoid from crash - SystemProp default null Default system properties should not have "null" as default value. Bug: 177843016 Change-Id: Idc2b3aaafd1094ba3fbfa859c4ad7a597e1b7a99 Test: build pass (cherry picked from commit d2eda630e2dc42ca4efdb0a45702de8452dd78c7) --- .../android/settings/network/telephony/MobileNetworkUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/network/telephony/MobileNetworkUtils.java b/src/com/android/settings/network/telephony/MobileNetworkUtils.java index 6e5d4b7b8eb..bad650dcd03 100644 --- a/src/com/android/settings/network/telephony/MobileNetworkUtils.java +++ b/src/com/android/settings/network/telephony/MobileNetworkUtils.java @@ -279,7 +279,7 @@ public class MobileNetworkUtils { final ContentResolver cr = context.getContentResolver(); final boolean esimIgnoredDevice = Arrays.asList(TextUtils.split(SystemProperties.get(KEY_ESIM_CID_IGNORE, ""), ",")) - .contains(SystemProperties.get(KEY_CID, null)); + .contains(SystemProperties.get(KEY_CID)); final boolean enabledEsimUiByDefault = SystemProperties.getBoolean(KEY_ENABLE_ESIM_UI_BY_DEFAULT, true); final boolean euiccProvisioned =