Fixed - StringIndexOutOfBoundsException is thrown if Redis port isn't defined in configuration. #3315

pull/5153/head
Nikita Koksharov 2 years ago
parent 15e21f05f5
commit 2d0948ccc3

@ -47,6 +47,10 @@ public class RedisURI {
throw new IllegalArgumentException("Redis url should start with redis:// or rediss:// (for SSL connection)");
}
if (uri.split(":").length < 3) {
throw new IllegalArgumentException("Redis url doesn't contain a port");
}
String urlHost = parseUrl(uri);
try {

Loading…
Cancel
Save