There is an ArrayIndexOutOfBoundsException parsing empty query parameters and the parameter name and values are not decoded.