From 240a378609791c0c92d71399b4717a190fc6968d Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Fri, 2 Oct 2015 13:37:46 +0300 Subject: [PATCH] Added check for this._currentEntry. --- ui/frame/frame.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/frame/frame.android.ts b/ui/frame/frame.android.ts index 4a2c9288f..547538e41 100644 --- a/ui/frame/frame.android.ts +++ b/ui/frame/frame.android.ts @@ -297,7 +297,7 @@ export class Frame extends frameCommon.Frame { } // Add to backStack if needed. - if (this.backStack.length > 0) { + if (this.backStack.length > 0 && this._currentEntry) { // We add each entry in the backstack to avoid the "Stack corrupted" mismatch var backstackTag = this._currentEntry[BACKSTACK_TAG]; fragmentTransaction.addToBackStack(backstackTag);