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

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