You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (Commented) (JIRA)" <ji...@apache.org> on 2012/03/27 02:37:26 UTC
[jira] [Commented] (CSV-87) CSVParser.getRecords() returns null
rather than empty List at EOF
[ https://issues.apache.org/jira/browse/CSV-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239071#comment-13239071 ]
Emmanuel Bourg commented on CSV-87:
-----------------------------------
+1
> CSVParser.getRecords() returns null rather than empty List at EOF
> -----------------------------------------------------------------
>
> Key: CSV-87
> URL: https://issues.apache.org/jira/browse/CSV-87
> Project: Commons CSV
> Issue Type: Bug
> Reporter: Sebb
>
> CSVParser.getRecords() returns null rather than empty List at EOF.
> It's usually easier for applications to deal with empty lists than to have to check for null after every invocation of the method.
> If the application really does need to know if the list is emty, then it can use a method such as isEmpty().
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira