mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
Added check for this._currentEntry.
This commit is contained in:
@ -297,7 +297,7 @@ export class Frame extends frameCommon.Frame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add to backStack if needed.
|
// 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
|
// We add each entry in the backstack to avoid the "Stack corrupted" mismatch
|
||||||
var backstackTag = this._currentEntry[BACKSTACK_TAG];
|
var backstackTag = this._currentEntry[BACKSTACK_TAG];
|
||||||
fragmentTransaction.addToBackStack(backstackTag);
|
fragmentTransaction.addToBackStack(backstackTag);
|
||||||
|
Reference in New Issue
Block a user