[Settings] Fix the error of checking the null point

Change-Id: Ied5d9d5268d9d6d83b2995ae0e56bf5f0276ad22
Test: manual
This commit is contained in:
Zoey Chen
2023-02-11 17:21:13 +00:00
parent 9a8ebc69b8
commit 1278cb5f87

View File

@@ -965,7 +965,7 @@ public class MobileNetworkUtils {
*/
public static CharSequence getPreferredStatus(boolean isRtlMode, Context context,
boolean isPreferredCallStatus, List<SubscriptionInfoEntity> entityList) {
if (entityList != null || !entityList.isEmpty()) {
if (entityList != null && !entityList.isEmpty()) {
final StringBuilder summary = new StringBuilder();
for (SubscriptionInfoEntity subInfo : entityList) {
int subsSize = entityList.size();