Skip to content

Commit 983a43e

Browse files
committed
[grid] Using the correct variable in throw
1 parent dc952cd commit 983a43e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/org/openqa/selenium/grid/node/local/LocalNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,11 @@ private Session createExternalSession(
899899
boolean bidiSupported = isSupportingBiDi && (webSocketUrl instanceof String);
900900
if (bidiSupported && bidiEnabled) {
901901
String biDiUrl = (String) other.getCapabilities().getCapability("webSocketUrl");
902-
URI uri = null;
902+
URI uri;
903903
try {
904904
uri = new URI(biDiUrl);
905905
} catch (URISyntaxException e) {
906-
throw new IllegalArgumentException("Unable to create URI from " + uri);
906+
throw new IllegalArgumentException("Unable to create URI from " + biDiUrl);
907907
}
908908
String bidiPath = String.format("/session/%s/se/bidi", other.getId());
909909
toUse =

0 commit comments

Comments
 (0)