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

Commit 894e2211 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "PackageManager can return null."

parents b97ba3c0 50f0514e
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -345,7 +345,7 @@ abstract public class ManagedServices {
                userId);
        if (DEBUG)
            Slog.v(TAG, mConfig.serviceInterface + " services: " + installedServices);

        if (installedServices != null) {
            for (int i = 0, count = installedServices.size(); i < count; i++) {
                ResolveInfo resolveInfo = installedServices.get(i);
                ServiceInfo info = resolveInfo.serviceInfo;
@@ -360,6 +360,7 @@ abstract public class ManagedServices {
                }
                installed.add(component);
            }
        }
        return installed;
    }