Tommaso Teofili created SOLR-3396:
-------------------------------------
Summary: 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: 3.6
Reporter: 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: [email protected]
For additional commands, e-mail: [email protected]