Merge "Add missing null check to AppErrors#handleAppCrashLocked" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-08-09 21:48:06 +00:00
committed by Android (Google) Code Review

View File

@@ -638,7 +638,8 @@ class AppErrors {
// Allow restarting for started or bound foreground services that are crashing the
// first time. This includes wallpapers.
if (sr.crashCount <= 1 && (sr.isForeground || procIsBoundForeground)) {
if ((data != null) && (sr.crashCount <= 1)
&& (sr.isForeground || procIsBoundForeground)) {
data.isRestartableForService = true;
}
}