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

Commit a82bdcb4 authored by Sascha Prueter's avatar Sascha Prueter Committed by Android Git Automerger
Browse files

am afa64d80: am a64ecf44: am 10651214: Merge "Add null check to...

am afa64d80: am a64ecf44: am 10651214: Merge "Add null check to cleanupRecentTasksLocked." into lmp-dev

* commit 'afa64d802f460a6c25c71694e7004b8b64101358':
  Add null check to cleanupRecentTasksLocked.
parents 6f792783 e6295fdb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3816,6 +3816,11 @@ public final class ActivityManagerService extends ActivityManagerNative
     * of affiliations.
     */
    void cleanupRecentTasksLocked(int userId) {
        if (mRecentTasks == null) {
            // Happens when called from the packagemanager broadcast before boot.
            return;
        }
        final HashMap<ComponentName, ActivityInfo> availActCache = new HashMap<>();
        final HashMap<String, ApplicationInfo> availAppCache = new HashMap<>();
        final IPackageManager pm = AppGlobals.getPackageManager();