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();
|
lock();
|
||||||
try {
|
try {
|
||||||
|
try {
|
||||||
|
if (out != null) {
|
||||||
try {
|
try {
|
||||||
out.flush();
|
out.flush();
|
||||||
|
} finally {
|
||||||
out.close();
|
out.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
rawOutStream.close();
|
rawOutStream.close();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue