Merge "Fix null pointer in SubscriptionUtil" into qt-dev am: 30d0e6c7d7

am: ac690d98c0

Change-Id: I69b7f210bbbef2bba3ef6792c128b806db07e90e
This commit is contained in:
Salvador Martinez
2019-05-01 16:01:49 -07:00
committed by android-build-merger
2 changed files with 10 additions and 1 deletions

View File

@@ -59,7 +59,11 @@ public class SubscriptionUtil {
return subscriptions;
}
private static boolean isInactiveInsertedPSim(UiccSlotInfo slotInfo) {
@VisibleForTesting
static boolean isInactiveInsertedPSim(UiccSlotInfo slotInfo) {
if (slotInfo == null) {
return false;
}
return !slotInfo.getIsEuicc() && !slotInfo.getIsActive() &&
slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT;
}