[ 
https://issues.apache.org/jira/browse/CAMEL-12607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527975#comment-16527975
 ] 

ASF GitHub Bot commented on CAMEL-12607:
----------------------------------------

oscerd edited a comment on issue #2402: CAMEL-12607: When using Tokenizer 
skipFirst java.util.NoSuchElementException if only one element [will merge 
after 2.22.0 release]
URL: https://github.com/apache/camel/pull/2402#issuecomment-401417881
 
 
   LGTM lets wait for release

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> When using Tokenizer skipFirst - java.util.NoSuchElementException if only one 
> element
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12607
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12607
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.21.1
>            Reporter: Sergey Savenko
>            Assignee: Dmitry Volodin
>            Priority: Minor
>
> I use {{.split().tokenize("\n", 10000, true).streaming()}} to stream csv file 
> with header row and skip first line.
>  When file contains ONLY header row - {{java.util.NoSuchElementException}} is 
> thrown in 
> [https://github.com/apache/camel/blob/camel-2.21.1/camel-core/src/main/java/org/apache/camel/util/GroupTokenIterator.java#L158],
>  because when it skips first line - it does not check if it has next line and 
> just calls next().



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to