diff --git a/tns-core-modules/application/application.ios.ts b/tns-core-modules/application/application.ios.ts index ed50a80aa..7362023a6 100644 --- a/tns-core-modules/application/application.ios.ts +++ b/tns-core-modules/application/application.ios.ts @@ -227,7 +227,7 @@ class IOSApplication implements IOSApplicationDefinition { public _onLivesync(): void { // If view can't handle livesync set window controller. - if (!this._rootView._onLivesync()) { + if (this._rootView && !this._rootView._onLivesync()) { this.setWindowContent(); } } @@ -380,4 +380,4 @@ global.__onLiveSync = function __onLiveSync(context?: ModuleContext) { const rootView = getRootView(); livesync(rootView, context); -} \ No newline at end of file +}