Skip to content

Commit a9d92c3

Browse files
author
James Leigh
committed
Fix #786: Catch NumberFormatException when checking server protocol
Signed-off-by: James Leigh <james.leigh@ontotext.com>
1 parent 012c2fc commit a9d92c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/http/workbench/src/main/java/org/eclipse/rdf4j/workbench/proxy/ServerValidator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ private boolean canConnect(final String server) {
118118
reader.close();
119119
}
120120
}
121+
catch (NumberFormatException e) {
122+
LOGGER.warn(e.toString(), e);
123+
}
121124
catch (MalformedURLException e) {
122125
LOGGER.warn(e.toString(), e);
123126
}

0 commit comments

Comments
 (0)