[ 
https://issues.apache.org/jira/browse/SOLR-3396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tommaso Teofili resolved SOLR-3396.
-----------------------------------

    Resolution: Fixed
      Assignee: Tommaso Teofili

fixed in r1329640
                
> ClientUtils appendMap can suffer NPE
> ------------------------------------
>
>                 Key: SOLR-3396
>                 URL: https://issues.apache.org/jira/browse/SOLR-3396
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>            Priority: Minor
>
> SolrJ's ClientUtils.appendMap method can suffer NPE if either map1 or map2 
> are null:
> {code}
>   public static void appendMap(String collection, Map<String,Slice> map1, 
> Map<String,Slice> map2) {
>       Set<Entry<String,Slice>> entrySet = map2.entrySet(); // NPE on map2
>       for (Entry<String,Slice> entry : entrySet) {
>         map1.put(collection + "_" + entry.getKey(), entry.getValue()); // NPE 
> on map1
>       }
>   }
> {code}

--
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

        

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

Reply via email to