summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2018-06-22 10:49:01 +0200
committerluccioman <luccioman@users.noreply.github.com>2018-06-22 10:49:01 +0200
commit38a3a5e5ada2c32832f34bcda1752bafbb87a345 (patch)
tree77b521b51b3958ec776748e264004ee66edbd981
parent8811700e2e7d0e2ffa5c08909d43e0cd993ef506 (diff)
Fixed a NullPointerException case in the suggest api
-rw-r--r--htroot/suggest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/htroot/suggest.java b/htroot/suggest.java
index e8867c05a..4d70c37f0 100644
--- a/htroot/suggest.java
+++ b/htroot/suggest.java
@@ -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", "])");