SOLR-1459: add null scorer check to QueryValueSource.java too

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@818505 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-09-24 15:02:35 +00:00
parent e0eee44b64
commit 43b546fede
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class QueryDocValues extends DocValues {
if (doc < lastDocRequested) {
// out-of-order access.... reset scorer.
scorer = weight.scorer(reader, true, false);
if (scorer==null) return defVal;
scorerDoc = -1;
}
lastDocRequested = doc;