From 983a43e47271e606dfd25115b8fd9b87538d1d1a Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Thu, 26 Dec 2024 17:51:13 +0100 Subject: [PATCH] [grid] Using the correct variable in throw --- java/src/org/openqa/selenium/grid/node/local/LocalNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/org/openqa/selenium/grid/node/local/LocalNode.java b/java/src/org/openqa/selenium/grid/node/local/LocalNode.java index 665fce7ac567a..49d5af6dfa184 100644 --- a/java/src/org/openqa/selenium/grid/node/local/LocalNode.java +++ b/java/src/org/openqa/selenium/grid/node/local/LocalNode.java @@ -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 =