Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1358#discussion_r93908210
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/SplitText.java
 ---
    @@ -288,7 +290,7 @@ public void process(InputStream in) throws IOException {
             int fragmentIndex = 1; // set to 1 to preserve the existing 
behavior *only*. Perhaps should be deprecated to follow the 0,1,2... scheme
             String fragmentId = UUID.randomUUID().toString();
     
    -        if (computedSplitsInfo.size() == 0) {
    +        if ((computedSplitsInfo.size() == 0) && (headerFlowFile != null)) {
    --- End diff --
    
    I don't know why it tries to create `splitFlowFile` even though 
`computedSplitsInfo` is empty. I tested this situation with ver 1.0, but 
SplitText didn't emit anything if the incoming flow file only contains header.
    Is there any reason to do this? @olegz 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to