mirror of https://github.com/apache/nifi.git
NIFI-1243 This closes #137. added null check for 'currentReadClaimStream' . . .before it is being closed
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
6a8c2dba12
commit
663b7f2561
|
@ -1806,7 +1806,7 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
|||
reader.process(ffais);
|
||||
|
||||
// Allow processors to close the file after reading to avoid too many files open or do smart session stream management.
|
||||
if(!allowSessionStreamManagement){
|
||||
if (this.currentReadClaimStream != null && !allowSessionStreamManagement) {
|
||||
currentReadClaimStream.close();
|
||||
currentReadClaimStream = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue