mirror of https://github.com/apache/nifi.git
NIFI-903: Check for null value before trying to close 'out' OutputStream on StandardRecordWriter.close
This commit is contained in:
parent
c68da68dc2
commit
f8c216b061
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue