only set matcher if parser is not null

This commit is contained in:
Simon Willnauer 2015-09-22 09:34:00 +02:00
parent 5f258b1585
commit 2c9a280878

View File

@ -127,7 +127,9 @@ public class QueryParseContext {
this.parseFieldMatcher = ParseFieldMatcher.EMPTY;
this.lookup = null;
this.parser = jp;
this.parser.setParseFieldMatcher(parseFieldMatcher);
if (parser != null) {
this.parser.setParseFieldMatcher(parseFieldMatcher);
}
this.namedQueries.clear();
this.nestedScope = new NestedScope();
this.isFilter = false;