mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixing currentEntry bug
The app crashes when it tries to access currentEntry property when _currentEntry is null.
This commit is contained in:
@@ -368,9 +368,13 @@ export class Frame extends CustomLayoutView implements definition.Frame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get currentEntry(): definition.NavigationEntry {
|
get currentEntry(): definition.NavigationEntry {
|
||||||
|
if (this._currentEntry) {
|
||||||
return this._currentEntry.entry;
|
return this._currentEntry.entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public _pushInFrameStack() {
|
public _pushInFrameStack() {
|
||||||
if (this._isInFrameStack) {
|
if (this._isInFrameStack) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user