mirror of https://github.com/apache/lucene.git
Reverting SOLR-435 (always run tests before committing)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@741097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
742dccd202
commit
4d4c5e0e1f
|
@ -236,8 +236,6 @@ Bug Fixes
|
|||
27. SOLR-991: Better error message when parsing solrconfig.xml fails due to malformed XML. Error message notes the name
|
||||
of the file being parsed. (Michael Henson via shalin)
|
||||
|
||||
28. SOLR-435: NullPointerException with no query or empty query (ryan, Lars Kotthoff via shalin)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -74,12 +74,7 @@ public class QueryComponent extends SearchComponent
|
|||
defType = defType==null ? OldLuceneQParserPlugin.NAME : defType;
|
||||
|
||||
if (rb.getQueryString() == null) {
|
||||
rb.setQueryString(params.get(CommonParams.Q));
|
||||
String queryString = params.get(CommonParams.Q);
|
||||
if (queryString == null) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"Missing or empty required parameter: q");
|
||||
}
|
||||
rb.setQueryString( params.get( CommonParams.Q ) );
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue