mirror of https://github.com/apache/lucene.git
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150373 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9db6cd299a
commit
cec270c525
|
@ -87,7 +87,7 @@ class CompoundFileReader extends Directory {
|
|||
success = true;
|
||||
|
||||
} finally {
|
||||
if (! success) {
|
||||
if (! success && (stream != null)) {
|
||||
try {
|
||||
stream.close();
|
||||
} catch (IOException e) { }
|
||||
|
|
Loading…
Reference in New Issue