Skip to content

Commit 8f4b69f

Browse files
committed
server: Fixing stringification of detached proxies
1 parent b5a1d07 commit 8f4b69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: java/server/src/org/openqa/grid/internal/BaseRemoteProxy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public int compareTo(RemoteProxy o) {
479479

480480
@Override
481481
public String toString() {
482-
return getRemoteHost().toString();
482+
return getRemoteHost() != null ? getRemoteHost().toString() : "<detached>";
483483
}
484484

485485
private final HtmlRenderer renderer = new DefaultHtmlRenderer(this);

0 commit comments

Comments
 (0)