You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2015/01/22 16:46:35 UTC

[jira] [Commented] (SOLR-7017) SolrParams.getParams should return 0-length array instead of null

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

Noble Paul commented on SOLR-7017:
----------------------------------

yeah sure, just don't create a zero length array always


> SolrParams.getParams should return 0-length array instead of null
> -----------------------------------------------------------------
>
>                 Key: SOLR-7017
>                 URL: https://issues.apache.org/jira/browse/SOLR-7017
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Priority: Minor
>
> It's a PITA to have code all over Solr littered with null checks for the response of SolrParams.getParams(String param).  Can't we just have it return a constant 0-length String array?



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org