In the class of HtmlUnitBrowserCompatCookieSpec, it has a method called isQuoteEnclosed(), if the passed argument is an empty string, it will throw an exception of StringIndexOutOfBoundsException.
For example,
private static boolean isQuoteEnclosed(final String s) {
return s != null
&& '\"' == s.charAt(0) //<-- caused by this line.
&& '\"' == s.charAt(s.length() - 1);
}
fixed in SVN, will refresh our snapshot build also.
Thanks for reporting and using HtmlUnit.