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

Commit 58396078 authored by Bonian Chen's avatar Bonian Chen Committed by Android (Google) Code Review
Browse files

Merge "[Settings] Add null pointer protection for Subscription API" into tm-dev

parents 897b72eb 84012c30
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -141,7 +141,8 @@ public class SelectableSubscriptions implements Callable<List<SubscriptionAnnota
    protected List<SubscriptionInfo> getSubInfoList(Context context,
            Function<SubscriptionManager, List<SubscriptionInfo>> convertor) {
        SubscriptionManager subManager = getSubscriptionManager(context);
        return (subManager == null) ? Collections.emptyList() : convertor.apply(subManager);
        List<SubscriptionInfo> result = (subManager == null) ? null : convertor.apply(subManager);
        return (result == null) ? Collections.emptyList() : result;
    }

    protected SubscriptionManager getSubscriptionManager(Context context) {