correct potential null pointer exception in unused DirectUpdateHandler found by fortifysoftware

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@488729 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-12-19 17:21:00 +00:00
parent 36e388040b
commit 48b2a71a04
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ public class DirectUpdateHandler extends UpdateHandler {
core.getSearcher(true,false,waitSearcher);
}
if (waitSearcher[0] != null) {
if (waitSearcher!=null && waitSearcher[0] != null) {
try {
waitSearcher[0].get();
} catch (InterruptedException e) {