mirror of https://github.com/apache/lucene.git
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:
parent
36e388040b
commit
48b2a71a04
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue