Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
The current QueryPlan.getJSONValue implementation is as below:
public String getJSONValue(Object value) { String v = "null"; if (value != null) { v = value.toString(); if (v.charAt(0) != '[' && v.charAt(0) != '{') { v = "\"" + v + "\""; } } return v; }
When value.toString() returns an empty string, a StringIndexOutOfRangeException would be thrown out when "v.charAt(0)" is evaluated.