Skip to content

Commit a7c1f3e

Browse files
authored
adding null check
1 parent b1e59ef commit a7c1f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export default class LambdaRestService {
264264
async updateJob(sessionId, _failures, calledOnReload = false, browserName) {
265265
const body = this.getBody(_failures, calledOnReload, browserName);
266266
try {
267-
if(process.env.LT_ERROR_REMARK === "true")
267+
if(process.env.LT_ERROR_REMARK === "true" && this._error !== null && this._error !== undefined)
268268
{
269269
await this._setSessionRemarks(this._error);
270270
}

0 commit comments

Comments
 (0)