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;
|
success = true;
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
if (! success) {
|
if (! success && (stream != null)) {
|
||||||
try {
|
try {
|
||||||
stream.close();
|
stream.close();
|
||||||
} catch (IOException e) { }
|
} catch (IOException e) { }
|
||||||
|
|
Loading…
Reference in New Issue