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

Commit 07591f8b authored by Adnan Begovic's avatar Adnan Begovic Committed by Gerrit Code Review
Browse files

telephony: Make sure to check whether application info is null.

  The applications could be overlaid, but not exist -- fallback.

Change-Id: I236ea3e2d5519548011f7225689d63c026b67290
parent 62bcb105
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -233,8 +233,10 @@ public final class CarrierAppUtils {

            for (String carrierApp : systemCarrierAppsEnabled) {
                ApplicationInfo ai = packageManager.getApplicationInfo(carrierApp, 0, userId);
                if (ai != null) {
                    apps.add(ai);
                }
            }
        } catch (RemoteException e) {
            Slog.w(TAG, "Could not reach PackageManager", e);
        }