mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-30 12:11:49 +01:00
Fix StringIndexOutOfBoundsException with empty string in QuotedStringTokenizer (#2041)
This commit is contained in:
parent
c6bda0875c
commit
9f3395f256
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user