Added check for this._currentEntry.

This commit is contained in:
Rossen Hristov
2015-10-02 13:37:46 +03:00
parent 16fecf19dd
commit 240a378609

View File

@ -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);