mirror of https://github.com/apache/lucene.git
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:
parent
b7763af7df
commit
37981de101
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue