https://issues.apache.org/jira/browse/AMQ-3725 - close delegated file only if not null

This commit is contained in:
Dejan Bosanac 2013-11-01 14:02:49 +01:00
parent 8a8fcb6ef4
commit 5dacae368b
1 changed files with 3 additions and 1 deletions

View File

@ -56,8 +56,10 @@ public class RecoverableRandomAccessFile implements java.io.DataOutput, java.io.
@Override
public void close() throws IOException {
if (raf != null) {
raf.close();
}
}
@Override
public void readFully(byte[] bytes) throws IOException {