mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-26 09:34:27 +00:00
Fixed SIOOBE when entering a blank quoted string
This commit is contained in:
@ -64,7 +64,7 @@ public class CommandContext {
|
||||
List<String> argList = new ArrayList<String>(args.length);
|
||||
for (int i = 1; i < args.length; ++i) {
|
||||
String arg = args[i];
|
||||
if (arg.isEmpty()) {
|
||||
if (arg.length() == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -94,6 +94,11 @@ public class CommandContext {
|
||||
arg = build.toString();
|
||||
i = endIndex;
|
||||
}
|
||||
|
||||
// In case there is an empty quoted string
|
||||
if (arg.length() == 0) {
|
||||
continue;
|
||||
}
|
||||
// else raise exception about hanging quotes?
|
||||
}
|
||||
argList.add(arg);
|
||||
|
Reference in New Issue
Block a user