Skip to content

Commit

Permalink
[grid] Using the correct variable in throw
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Dec 26, 2024
1 parent dc952cd commit 983a43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/org/openqa/selenium/grid/node/local/LocalNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -899,11 +899,11 @@ private Session createExternalSession(
boolean bidiSupported = isSupportingBiDi && (webSocketUrl instanceof String);
if (bidiSupported && bidiEnabled) {
String biDiUrl = (String) other.getCapabilities().getCapability("webSocketUrl");
URI uri = null;
URI uri;
try {
uri = new URI(biDiUrl);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Unable to create URI from " + uri);
throw new IllegalArgumentException("Unable to create URI from " + biDiUrl);
}
String bidiPath = String.format("/session/%s/se/bidi", other.getId());
toUse =
Expand Down

0 comments on commit 983a43e

Please sign in to comment.