Skip to content

Commit 5fe7282

Browse files
author
Fatme
authored
Merge pull request #3471 from NativeScript/fatme/fix-undefined
Fix cannot read `nativescript-cloud` of undefined error
2 parents 1d365bf + 09fd55a commit 5fe7282

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)