Move async result cursor to AsyncConnection
[yaz4j-moved-to-github.git] / src / main / java / org / yaz4j / Query.java
index 03a5f09..0f51710 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995-2013, Index Datassss
+ * Copyright (c) 1995-2013, Index Data
  * All rights reserved.
  * See the file LICENSE for details.
  */
@@ -18,7 +18,9 @@ public abstract class Query {
   SWIGTYPE_p_ZOOM_query_p query;
   private boolean disposed = false;
   
-  protected Query() {
+  protected Query(String queryString) {
+    if (queryString == null)
+      throw new NullPointerException("query string cannot be null");
     query = yaz4jlib.ZOOM_query_create();
   }