summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2013-11-14 00:15:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-11-14 00:15:55 +0000
commit1f0f9fa94913198cd79b8d350cf9e8df8001daeb (patch)
tree15ac9a47f1a7a05043ec43847e9bdeae5967d62b
parenta951fa56f1855cd0337bddacc01e35868c6d66d6 (diff)
parentada62fca51d314cefe2c5da4e007df5b9abf320d (diff)
downloadframeworks_base-1f0f9fa94913198cd79b8d350cf9e8df8001daeb.zip
frameworks_base-1f0f9fa94913198cd79b8d350cf9e8df8001daeb.tar.gz
frameworks_base-1f0f9fa94913198cd79b8d350cf9e8df8001daeb.tar.bz2
Merge "Add null pointer check." into klp-dev
-rw-r--r--services/java/com/android/server/am/ActivityStack.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java
index fd791f9..0e15261 100644
--- a/services/java/com/android/server/am/ActivityStack.java
+++ b/services/java/com/android/server/am/ActivityStack.java
@@ -3160,7 +3160,9 @@ final class ActivityStack {
final TaskRecord task = mResumedActivity != null ? mResumedActivity.task : null;
if (task == tr && task.mOnTopOfHome || numTasks <= 1) {
- task.mOnTopOfHome = false;
+ if (task != null) {
+ task.mOnTopOfHome = false;
+ }
return mStackSupervisor.resumeHomeActivity(null);
}