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,7 +56,9 @@ public class RecoverableRandomAccessFile implements java.io.DataOutput, java.io.
|
|||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
raf.close();
|
||||
if (raf != null) {
|
||||
raf.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue