diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2018-06-22 10:49:01 +0200 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2018-06-22 10:49:01 +0200 |
| commit | 38a3a5e5ada2c32832f34bcda1752bafbb87a345 (patch) | |
| tree | 77b521b51b3958ec776748e264004ee66edbd981 | |
| parent | 8811700e2e7d0e2ffa5c08909d43e0cd993ef506 (diff) | |
Fixed a NullPointerException case in the suggest api
| -rw-r--r-- | htroot/suggest.java | 2 |
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", "])"); |
