From 71107533bb3b0e0dc2e131e717dbc367865ac872 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Thu, 20 Sep 2018 09:47:53 +0300 Subject: [PATCH] refactor: guard livesync for cases the app is not yet started (#6276) --- tns-core-modules/ui/frame/frame-common.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tns-core-modules/ui/frame/frame-common.ts b/tns-core-modules/ui/frame/frame-common.ts index 1c93c3d39..fe6c61ba4 100644 --- a/tns-core-modules/ui/frame/frame-common.ts +++ b/tns-core-modules/ui/frame/frame-common.ts @@ -531,6 +531,10 @@ export class FrameBase extends CustomLayoutView implements FrameDefinition { public _onLivesync(): boolean { super._onLivesync(); + if (!this._currentEntry || !this._currentEntry.entry) { + return false; + } + const currentEntry = this._currentEntry.entry; const newEntry: NavigationEntry = { animated: false,