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,9 +368,13 @@ export class Frame extends CustomLayoutView implements definition.Frame {
}
get currentEntry(): definition.NavigationEntry {
if (this._currentEntry) {
return this._currentEntry.entry;
}
return null;
}
public _pushInFrameStack() {
if (this._isInFrameStack) {
return;