metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METRON-140) CSV Extractor fails with index out of bound exception on empty last line
Date Sat, 07 May 2016 19:56:12 GMT

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

ASF GitHub Bot commented on METRON-140:
---------------------------------------

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

    https://github.com/apache/incubator-metron/pull/109#discussion_r62421908
  
    --- Diff: metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/extractor/csv/CSVExtractor.java
---
    @@ -82,6 +83,14 @@ public LookupConverter getConverter() {
         return Arrays.asList(new LookupKV(key, converter.toValue(values)));
       }
     
    +  private boolean ignore(String line) {
    +    if(null == line) {
    +      return false;
    --- End diff --
    
    I think you mean to return "true" here


> CSV Extractor fails with index out of bound exception on empty last line
> ------------------------------------------------------------------------
>
>                 Key: METRON-140
>                 URL: https://issues.apache.org/jira/browse/METRON-140
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Michael Miklavcic
>
> Need to ignore empty last line.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message