Skip to content

Commit e6883eb

Browse files
authored
Update automation_client.js
1 parent 53b0aa5 commit e6883eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/automation_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ AutomationApiClient.prototype.updateSessionById = function(
361361
* Checking validity of requestBody payload.
362362
* @return {Error|null}
363363
*/
364-
if(typeof requestBody === "object") {
364+
if(requestBody === null || requestBody === undefined) {
365365
throw new Error("It's look like your requestBody Payload is Invalid");
366366
}
367367
if(typeof fnCallback === "function") {

0 commit comments

Comments
 (0)