Skip to content

Commit 72372cf

Browse files
author
Adam Rutland
committed
Fix error when Anonymous Apex has no response.
1 parent 6094c54 commit 72372cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datapacksutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ DataPacksUtils.prototype.runApex = function(projectPath, filePath, currentContex
540540

541541
if (err) return reject(err);
542542

543-
if (res.success === true) return resolve(true);
543+
if (!res || res.success === true) return resolve(true);
544544
if (res.compileProblem) {
545545
VlocityUtils.error('APEX Compilation Error', res.compileProblem);
546546
}

0 commit comments

Comments
 (0)