Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@@ -252,7 +252,7 @@ public final class DisplayUtils {
String urlNoDots = url;
String dots = "";
- while (urlNoDots.charAt(0) == '.') {
+ while (urlNoDots.length() > 0 && urlNoDots.charAt(0) == '.') {
urlNoDots = url.substring(1);
dots = dots + ".";
}