SOLR-4977: add back this null check, getConfig calls ensureOpen...

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1498957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-07-02 14:37:55 +00:00
parent 28b372ad47
commit 5f678a0e23
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ public class SolrIndexWriter extends IndexWriter {
break;
}
} finally {
infoStream.close();
if (infoStream != null) {
infoStream.close();
}
isClosed = true;
directoryFactory.release(directory);
numCloses.incrementAndGet();