Github user mattyb149 commented on the issue:
https://github.com/apache/nifi/pull/2874
+1 LGTM, reproduced the issue before this fix, and verified the correct
behavior is implemented. Sorry you had to do this lol, but very thankful for
the fix! Merging to master---
