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

Unverified Commit 8ed557df authored by LuK1337's avatar LuK1337 Committed by Michael Bestas
Browse files

Make UiccSlot::getPrintableIccIds() skip null values

collect() requires non-null values.

Change-Id: Id5192b374e8ea608ce86bc3d73691d7569f92526
parent 39aa447b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -654,6 +654,7 @@ public class UiccSlot extends Handler {

    private Map<Integer, String> getPrintableIccIds() {
        Map<Integer, String> printableIccIds = mIccIds.entrySet().stream()
                .filter(e -> e.getValue() != null)
                .collect(Collectors.toMap(Map.Entry::getKey,
                        e -> SubscriptionInfo.getPrintableId(e.getValue())));
        return printableIccIds;