mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3725 - close delegated file only if not null
This commit is contained in:
parent
8a8fcb6ef4
commit
5dacae368b
|
@ -56,8 +56,10 @@ public class RecoverableRandomAccessFile implements java.io.DataOutput, java.io.
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
if (raf != null) {
|
||||||
raf.close();
|
raf.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFully(byte[] bytes) throws IOException {
|
public void readFully(byte[] bytes) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue