Fixing currentEntry bug

The app crashes when it tries to access currentEntry property when _currentEntry is null.
This commit is contained in:
Sebastian Witalec
2016-06-05 22:57:19 +01:00
parent 54ca6f0e14
commit 8fd0476353

View File

@@ -368,7 +368,11 @@ export class Frame extends CustomLayoutView implements definition.Frame {
} }
get currentEntry(): definition.NavigationEntry { get currentEntry(): definition.NavigationEntry {
return this._currentEntry.entry; if (this._currentEntry) {
return this._currentEntry.entry;
}
return null;
} }
public _pushInFrameStack() { public _pushInFrameStack() {