Merge "Fix NPE in startup wizard caused by former change." into nyc-mr1-dev

This commit is contained in:
George Mount
2016-06-08 22:52:03 +00:00
committed by Android (Google) Code Review

View File

@@ -4271,7 +4271,8 @@ public class Activity extends ContextThemeWrapper
private Bundle transferSpringboardActivityOptions(Bundle options) {
if (options == null && (mWindow != null && !mWindow.isActive())) {
final ActivityOptions activityOptions = getActivityOptions();
if (activityOptions.getAnimationType() == ActivityOptions.ANIM_SCENE_TRANSITION) {
if (activityOptions != null &&
activityOptions.getAnimationType() == ActivityOptions.ANIM_SCENE_TRANSITION) {
return activityOptions.toBundle();
}
}