diff options
| author | 2021-05-12 23:33:51 +0000 | |
|---|---|---|
| committer | 2021-05-12 23:33:51 +0000 | |
| commit | bf25b68828327f7611f3e8de746b41641ce58f8a (patch) | |
| tree | 3d2a6a0cd6296135befaac6156864367ebe4d24f | |
| parent | cd86f38402ae4d9f42fb382214727a6f381ce657 (diff) | |
| parent | 0a986df19d8339102f5daf285356a3994166ef54 (diff) | |
Merge "mLocalDeviceIdleController could be null." into sc-dev
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 83cff1578d08..6661f88f3fdf 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -14621,7 +14621,9 @@ public class ActivityManagerService extends IActivityManager.Stub String reason, @TempAllowListType int type, int callingUid) { synchronized (mProcLock) { // The temp allowlist type could change according to the reasonCode. - type = mLocalDeviceIdleController.getTempAllowListType(reasonCode, type); + if (mLocalDeviceIdleController != null) { + type = mLocalDeviceIdleController.getTempAllowListType(reasonCode, type); + } if (type == TEMPORARY_ALLOW_LIST_TYPE_NONE) { return; } |