mirror of
https://github.com/apache/lucene.git
synced 2025-03-05 15:59:25 +00:00
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:
parent
609396c37d
commit
785c7d47c0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user