SOLR-4925 Collection create throws NPE when 'numShards' param is missing

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1492808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2013-06-13 18:42:54 +00:00
parent b7763af7df
commit 37981de101
2 changed files with 3 additions and 1 deletions

View File

@ -139,6 +139,8 @@ Bug Fixes
* SOLR-4915: The root cause should be returned to the user when a SolrCore create call fails.
(Mark Miller)
* SOLR-4925 : Collection create throws NPE when 'numShards' param is missing (Noble Paul)
Other Changes
----------------------

View File

@ -779,7 +779,7 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
throws Exception {
String str = message.getStr(key);
try {
return str == null ? def : Integer.parseInt(str);
return str == null ? def : Integer.valueOf(str);
} catch (Exception ex) {
SolrException.log(log, "Could not parse " + key, ex);
throw ex;