Fixed SIOOBE when entering a blank quoted string

This commit is contained in:
zml2008
2011-12-24 22:04:37 -08:00
parent 9aa8c5f674
commit a1e239d08c
3 changed files with 19 additions and 3 deletions

View File

@ -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");
}
}
}