mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-09 12:38:01 +02: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()) {
|
while (hasNext()) {
|
||||||
output.add(readString());
|
output.add(readString());
|
||||||
}
|
}
|
||||||
if (!omitEmptyStringAtEnd && isWhitespace(peek(-1))) {
|
if (!omitEmptyStringAtEnd && this.cursor > 0 && isWhitespace(peek(-1))) {
|
||||||
output.add("");
|
output.add("");
|
||||||
}
|
}
|
||||||
return output;
|
return output;
|
||||||
|
Loading…
Reference in New Issue
Block a user