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:
Shalin Shekhar Mangar 2009-02-05 13:10:33 +00:00
parent 742dccd202
commit 4d4c5e0e1f
2 changed files with 1 additions and 8 deletions

View File

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

View File

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