am bfb30244: Merge "[ActivityManager] Fix NPE when start activity"

* commit 'bfb30244fbd3c6ba9eb8308b6bbacc9f78e8b6ef':
  [ActivityManager] Fix NPE when start activity
This commit is contained in:
Olawale Ogunwale
2014-12-12 13:57:06 +00:00
committed by Android Git Automerger

View File

@@ -1315,7 +1315,6 @@ public final class ActivityStackSupervisor implements DisplayListener {
}
}
}
ActivityStack resultStack = resultRecord == null ? null : resultRecord.task.stack;
final int launchFlags = intent.getFlags();
@@ -1392,6 +1391,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
}
}
final ActivityStack resultStack = resultRecord == null ? null : resultRecord.task.stack;
if (err != ActivityManager.START_SUCCESS) {
if (resultRecord != null) {
resultStack.sendActivityResultLocked(-1,