commit | 204c4ad467ad62be89cf076c31370fd901b2379b | [log] [tgz] |
---|---|---|
author | Craig Mautner <cmautner@google.com> | Wed Aug 27 14:01:25 2014 -0700 |
committer | The Android Automerger <android-build@google.com> | Wed Aug 27 14:47:29 2014 -0700 |
tree | 951e67c4829bae262bc630ea6eafc45c97c5d1d4 | |
parent | 17a79dae7cd5d4e92bbe448e9f0657b7cbe73b00 [diff] |
Add null check to cleanupRecentTasksLocked. If during boot, the package manager broadcast occurs before TaskPersister has restored the recents list then mRecentTasks will be null and an NPE will occur. This checks for null mRecentsTasks and returns before the NPE happens. Fixes bug 17300409. Change-Id: I1588ad3a3c0d04bc6f273630ef5dadf6821e5710