Skip to content

Commit

Permalink
[grid][java] fix node-docker
Browse files Browse the repository at this point in the history
Exception in thread "Thread-0" java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.grid.node.Node.getStatus()" because "this.node" is null

Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Apr 8, 2024
1 parent a3d4d14 commit 31028c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public Result check() {
try {
NodeStatus status = getStatus();

if (!Objects.equals(getId(), status.getNodeId())) {
if (status.getNodeId() != null && !Objects.equals(getId(), status.getNodeId())) {
// ensure the original RemoteNode stays DOWN when it has been restarted and registered
// again as another RemoteNode with the same externalUri
return new Result(DOWN, externalUri + " has unexpected node id");
Expand Down

0 comments on commit 31028c2

Please sign in to comment.