DATAKV-114 - Fixed NullPointerException in SpelQueryEngine.

Original pull request: #15.
This commit is contained in:
Martin Macko
2015-10-31 19:13:09 +01:00
committed by Oliver Gierke
parent ddeee72f0d
commit 4b217cef15
2 changed files with 170 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ class SpelQueryEngine<T extends KeyValueAdapter> extends QueryEngine<KeyValueAda
matches = criteria.getValue(candidate, Boolean.class);
} catch (SpelEvaluationException e) {
criteria.getEvaluationContext().setVariable("it", candidate);
matches = criteria.getValue(Boolean.class);
matches = criteria.getValue() == null ? false : criteria.getValue(Boolean.class);
}
}