Merge "Fix NPE from refactoring"

This commit is contained in:
Jorim Jaggi
2018-01-24 22:15:36 +00:00
committed by Android (Google) Code Review

View File

@@ -13746,7 +13746,7 @@ public class ActivityManagerService extends IActivityManager.Stub
int index = task.mActivities.lastIndexOf(r);
if (index > 0) {
ActivityRecord under = task.mActivities.get(index - 1);
under.returningOptions = safeOptions.getOptions(r);
under.returningOptions = safeOptions != null ? safeOptions.getOptions(r) : null;
}
final boolean translucentChanged = r.changeWindowTranslucency(false);
if (translucentChanged) {