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
|
@ -273,9 +273,14 @@ public class StandardRecordWriter implements RecordWriter {
|
|||
|
||||
lock();
|
||||
try {
|
||||
try {
|
||||
if (out != null) {
|
||||
try {
|
||||
out.flush();
|
||||
} finally {
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
rawOutStream.close();
|
||||
|
||||
|
|
Loading…
Reference in New Issue