SOLR-801 follow-up -- Fix NullPointerException in case of multiple root entities when deleteQuery is not specified

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@747343 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-02-24 11:19:51 +00:00
parent 3a5fa680eb
commit 19d7b267a7
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ public class DocBuilder {
if (delQuery == null && !completeCleanDone.get()) {
writer.doDeleteAll();
completeCleanDone.set(true);
} else {
} else if (delQuery != null) {
writer.deleteByQuery(delQuery);
}
}