Skip to content

Commit

Permalink
handle invalid URI exception
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
  • Loading branch information
Yannic92 committed Aug 1, 2022
1 parent 6b36ad5 commit f663fe4
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -1161,7 +1161,9 @@ private void retryOpenConnectionWithAdaptedEntity(final RetryOpenConnection retr
try {
uri = new URI(oldUri);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
log.info("Got invalid URI when trying to adapt the connection automatically. Skipping adaption.");
handleOpenConnectionError(retryOpenConnection);
return;
}
final var oldUserNameAndPassword = uri.getRawUserInfo();
final var newUserNameAndPassword =
Expand Down

0 comments on commit f663fe4

Please sign in to comment.