Fixed a NullPointerException case in the suggest api

pull/186/head
luccioman 6 years ago
parent 8811700e2e
commit 38a3a5e5ad

@ -103,7 +103,7 @@ public class suggest {
}
// check for JSONP
if ( post.containsKey("callback") ) {
if (post != null && post.containsKey("callback") ) {
final String jsonp = post.get("callback") + "([";
prop.put("jsonp-start", jsonp);
prop.put("jsonp-end", "])");

Loading…
Cancel
Save