Skip to content

Commit a7834be

Browse files
committed
Fixed PHP Fatal crash in RemoteWebDriver:507
1 parent 787e71d commit a7834be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/Remote/RemoteWebDriver.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,11 @@ public function execute($command_name, $params = array()) {
504504
$params
505505
);
506506

507-
$response = $this->executor->execute($command);
508-
return $response->getValue();
507+
if ($this->executor) {
508+
$response = $this->executor->execute($command);
509+
return $response->getValue();
510+
} else {
511+
return null;
512+
}
509513
}
510514
}

0 commit comments

Comments
 (0)