mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-15 21:43:53 +00:00
Fixed SIOOBE when entering a blank quoted string
This commit is contained in:
@ -143,4 +143,15 @@ public class CommandContextTest {
|
||||
fail("Error creating CommandContext");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyQuote() {
|
||||
try {
|
||||
CommandContext context = new CommandContext("region flag xmas blocked-cmds \"\"");
|
||||
assertEquals(context.argsLength(), 3);
|
||||
} catch (CommandException e) {
|
||||
e.printStackTrace();
|
||||
fail("Error creating CommandContext");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user