Skip to content

Commit 09fd55a

Browse files
committed
Fix cannot read nativescript-cloud of undefined error
1 parent 137c3e3 commit 09fd55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/nativescript-cloud-extension-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class NativescriptCloudExtensionService implements INativescriptCloudExte
66
private $logger: ILogger) { }
77

88
public install(): Promise<IExtensionData> {
9-
const installedExtensions = this.$extensibilityService.getInstalledExtensions();
9+
const installedExtensions = this.$extensibilityService.getInstalledExtensions() || {};
1010
if (!installedExtensions[constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME]) {
1111
return this.$extensibilityService.installExtension(constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME);
1212
}

0 commit comments

Comments
 (0)