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,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