1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Fix StringIndexOutOfBoundsException in ConnectionException

This commit is contained in:
Florian Schmaus 2014-09-29 08:58:39 +02:00
parent aa90cfadc5
commit 6c892fec96

View file

@ -181,7 +181,7 @@ public class SmackException extends Exception {
sb.append(", ");
}
// Remove the last whitespace
sb.deleteCharAt(sb.length());
sb.deleteCharAt(sb.length() - 1);
return new ConnectionException(sb.toString(), failedAddresses);
}