mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 18:04:26 +00:00
Fix StringIndexOutOfBoundsException with empty string in QuotedStringTokenizer (#2041)
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -44,7 +44,7 @@ public class QuotedStringTokenizer {
|
||||
while (hasNext()) {
|
||||
output.add(readString());
|
||||
}
|
||||
if (!omitEmptyStringAtEnd && isWhitespace(peek(-1))) {
|
||||
if (!omitEmptyStringAtEnd && this.cursor > 0 && isWhitespace(peek(-1))) {
|
||||
output.add("");
|
||||
}
|
||||
return output;
|
||||
|
||||
Reference in new issue
Block a user