summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2016-07-12 23:28:37 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-07-12 23:28:38 +0000
commitab1b52a0c4804493232f28b1f08fce31db171884 (patch)
tree12a784247b2d9f99b357862061c6659a73bdf9ce
parent9b550cb1880f495978ce5f789e360e3d3dd25f2c (diff)
parent4d8959489d6b4123340dd2113044548b37d1b370 (diff)
Merge "Fix issue #30013670: Phone AP crash when testing VT call" into nyc-mr1-dev
-rw-r--r--services/core/java/com/android/server/am/AppErrors.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/AppErrors.java b/services/core/java/com/android/server/am/AppErrors.java
index 49106f42044e..03843d11a62e 100644
--- a/services/core/java/com/android/server/am/AppErrors.java
+++ b/services/core/java/com/android/server/am/AppErrors.java
@@ -58,6 +58,7 @@ import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
+import java.util.Set;
import java.util.concurrent.Semaphore;
import static com.android.server.Watchdog.NATIVE_STACKS_OF_INTEREST;
@@ -386,8 +387,8 @@ class AppErrors {
} catch (IllegalArgumentException e) {
// Hmm, that didn't work, app might have crashed before creating a
// recents entry. Let's see if we have a safe-to-restart intent.
- if (task.intent.getCategories().contains(
- Intent.CATEGORY_LAUNCHER)) {
+ final Set<String> cats = task.intent.getCategories();
+ if (cats != null && cats.contains(Intent.CATEGORY_LAUNCHER)) {
mService.startActivityInPackage(task.mCallingUid,
task.mCallingPackage, task.intent,
null, null, null, 0, 0,