diff options
| author | 2016-09-14 14:00:58 +0000 | |
|---|---|---|
| committer | 2016-09-14 14:00:58 +0000 | |
| commit | 7baba1ab4f11c2511e703b0ee1bfcfa5c9d37476 (patch) | |
| tree | 200f89c8342c2052779b0ffb4dafa69516ca5c7b | |
| parent | c7cafbaa41b3669377010dc453996bde5eb10bd4 (diff) | |
| parent | 699f40e3070139e3a45cd8da2fdd86c743d1680b (diff) | |
Fixed NPE when pause is complete on a dead app. am: e852400e1b
am: 699f40e307
Change-Id: I28877fe4c26c33a853c766f660bfc3dbc4a235a1
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityStack.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java index edc333458c59..60d3d1ec349b 100644 --- a/services/core/java/com/android/server/am/ActivityStack.java +++ b/services/core/java/com/android/server/am/ActivityStack.java @@ -1308,7 +1308,9 @@ final class ActivityStack { // It is possible the activity was freezing the screen before it was paused. // In that case go ahead and remove the freeze this activity has on the screen // since it is no longer visible. - prev.stopFreezingScreenLocked(true /*force*/); + if (prev != null) { + prev.stopFreezingScreenLocked(true /*force*/); + } mPausingActivity = null; } |