Add null arg check

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1384920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2012-09-14 21:01:03 +00:00
parent 609396c37d
commit 785c7d47c0

View File

@ -39,6 +39,8 @@ public class QueryWrapperFilter extends Filter {
* <code>query</code>.
*/
public QueryWrapperFilter(Query query) {
if (query == null)
throw new NullPointerException("Query may not be null");
this.query = query;
}