From 1278cb5f877652a9690e517e7f352f4fdb184872 Mon Sep 17 00:00:00 2001 From: Zoey Chen Date: Sat, 11 Feb 2023 17:21:13 +0000 Subject: [PATCH] [Settings] Fix the error of checking the null point Change-Id: Ied5d9d5268d9d6d83b2995ae0e56bf5f0276ad22 Test: manual --- .../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 ff9ef395e23..308da88ed34 100644 --- a/src/com/android/settings/network/telephony/MobileNetworkUtils.java +++ b/src/com/android/settings/network/telephony/MobileNetworkUtils.java @@ -965,7 +965,7 @@ public class MobileNetworkUtils { */ public static CharSequence getPreferredStatus(boolean isRtlMode, Context context, boolean isPreferredCallStatus, List entityList) { - if (entityList != null || !entityList.isEmpty()) { + if (entityList != null && !entityList.isEmpty()) { final StringBuilder summary = new StringBuilder(); for (SubscriptionInfoEntity subInfo : entityList) { int subsSize = entityList.size();