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=15275365#comment-15275365
] 

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_r62421915
  
    --- Diff: metron-platform/metron-data-management/src/test/java/org/apache/metron/dataloads/extractor/csv/CSVExtractorTest.java
---
    @@ -91,5 +85,9 @@ public void validate(ExtractorHandler handler) throws IOException {
           Iterable<LookupKV> results = handler.getExtractor().extract("#google.com,1.0,foo");
           Assert.assertEquals(0, Iterables.size(results));
         }
    +    {
    +      Iterable<LookupKV> results = handler.getExtractor().extract("");
    +      Assert.assertEquals(0, Iterables.size(results));
    +    }
    --- End diff --
    
    Cool!  Can you add a case for null and for a "  "?


> 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