Skip to content

Commit

Permalink
Fixed a NullPointerException case in the suggest api
Browse files Browse the repository at this point in the history
  • Loading branch information
luccioman committed Jun 22, 2018
1 parent 8811700 commit 38a3a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htroot/suggest.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static serverObjects respond(final RequestHeader header, final serverObje
}

// 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", "])");
Expand Down

0 comments on commit 38a3a5e

Please sign in to comment.