Fix disclaimer potentially pushing a null screen (#6137)

Fix disclaimer potentially pushing a null screen
This commit is contained in:
Dean Herbert 2019-09-17 16:39:04 +09:00 committed by GitHub
commit fd3e2375bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -173,7 +173,11 @@ public override void OnEntering(IScreen last)
.Then(5500)
.FadeOut(250)
.ScaleTo(0.9f, 250, Easing.InQuint)
.Finally(d => this.Push(nextScreen));
.Finally(d =>
{
if (nextScreen != null)
this.Push(nextScreen);
});
}
}
}