mirror of
https://github.com/apache/activemq.git
synced 2025-02-08 02:59:40 +00:00
https://issues.apache.org/jira/browse/AMQ-3725 - close delegated file only if not null
This commit is contained in:
parent
a38d26b419
commit
a675bd96f0
@ -56,7 +56,9 @@ public class RecoverableRandomAccessFile implements java.io.DataOutput, java.io.
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
raf.close();
|
if (raf != null) {
|
||||||
|
raf.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user