From 09fd55a41a8b67d5b8eece5e77879d58ef18eba4 Mon Sep 17 00:00:00 2001 From: fatme Date: Mon, 19 Mar 2018 11:17:14 +0200 Subject: [PATCH] Fix cannot read `nativescript-cloud` of undefined error --- lib/services/nativescript-cloud-extension-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/nativescript-cloud-extension-service.ts b/lib/services/nativescript-cloud-extension-service.ts index ef33a8d84b..14eeacd46c 100644 --- a/lib/services/nativescript-cloud-extension-service.ts +++ b/lib/services/nativescript-cloud-extension-service.ts @@ -6,7 +6,7 @@ export class NativescriptCloudExtensionService implements INativescriptCloudExte private $logger: ILogger) { } public install(): Promise { - const installedExtensions = this.$extensibilityService.getInstalledExtensions(); + const installedExtensions = this.$extensibilityService.getInstalledExtensions() || {}; if (!installedExtensions[constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME]) { return this.$extensibilityService.installExtension(constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME); }