NIFI-903: Check for null value before trying to close 'out' OutputStream on StandardRecordWriter.close

This commit is contained in:
Mark Payne 2015-08-31 10:50:00 -04:00
parent c68da68dc2
commit f8c216b061
1 changed files with 7 additions and 2 deletions

View File

@ -273,9 +273,14 @@ public class StandardRecordWriter implements RecordWriter {
lock();
try {
try {
if (out != null) {
try {
out.flush();
} finally {
out.close();
}
}
} finally {
rawOutStream.close();