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,7 +368,11 @@ export class Frame extends CustomLayoutView implements definition.Frame {
|
||||
}
|
||||
|
||||
get currentEntry(): definition.NavigationEntry {
|
||||
return this._currentEntry.entry;
|
||||
if (this._currentEntry) {
|
||||
return this._currentEntry.entry;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public _pushInFrameStack() {
|
||||
|
||||
Reference in New Issue
Block a user