commit | d5f6af629f78643f22e679de2656609fce116218 | [log] [tgz] |
---|---|---|
author | Michael Hanl <micha.hanl@gmail.com> | Fri Sep 19 20:22:43 2014 +0000 |
committer | Michael Hanl <micha.hanl@gmail.com> | Fri Sep 19 20:22:43 2014 +0000 |
tree | c5199886e5dccd7eb3406c3b51a171438b003fca | |
parent | fbc88792cb0c442b07cfcae37a109ede46cb48ac [diff] |
nullpointer bug fix
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java b/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java index a048ecf..af5d8d8 100644 --- a/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java +++ b/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java
@@ -99,10 +99,9 @@ public QuerySerializer setQuery(String query, String ql, String version) throws QueryException { - if (query.isEmpty()) + if (query == null || query.isEmpty()) throw new QueryException(406, "No Content!"); - try { if (ql.equalsIgnoreCase("poliqarp")) { ast = new PoliqarpPlusTree(query);