Skip to content
Permalink
Browse files

Fixed a NullPointerException case in the suggest api

  • Loading branch information...
luccioman committed Jun 22, 2018
1 parent 8811700 commit 38a3a5e5ada2c32832f34bcda1752bafbb87a345
Showing with 1 addition and 1 deletion.
  1. +1 −1 htroot/suggest.java
@@ -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", "])");

0 comments on commit 38a3a5e

Please sign in to comment.
You can’t perform that action at this time.