diff --git a/packages/salesforcedx-vscode-core/src/commands/baseDeployRetrieve.ts b/packages/salesforcedx-vscode-core/src/commands/baseDeployRetrieve.ts index fd0bd794e8..4b322ea89e 100644 --- a/packages/salesforcedx-vscode-core/src/commands/baseDeployRetrieve.ts +++ b/packages/salesforcedx-vscode-core/src/commands/baseDeployRetrieve.ts @@ -286,9 +286,11 @@ export abstract class RetrieveExecutor extends DeployRetrieveExecutor { const relativePackageDirs = await SfdxPackageDirectories.getPackageDirectoryPaths(); const output = this.createOutput(result, relativePackageDirs); channelService.appendLine(output); - PersistentStorageService.getInstance().setPropertiesForFilesRetrieve( - result.response.fileProperties - ); + if (result?.response?.fileProperties !== undefined) { + PersistentStorageService.getInstance().setPropertiesForFilesRetrieve( + result.response.fileProperties + ); + } } }