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

Commit db24551d authored by Bonian Chen's avatar Bonian Chen Committed by Automerger Merge Worker
Browse files

Merge "[Settings] Add null pointer protection for Subscription API" into...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17465486



Change-Id: I07a09e66af72da761d9b04b91c4dc0803ccb049f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 83fe513c ee09af71
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) {