[
https://issues.apache.org/jira/browse/SOLR-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584374#action_12584374
]
Lars Kotthoff commented on SOLR-525:
------------------------------------
Ah, sorry, didn't find that issue. I agree with the original thread reporting
this problem that returning a 400 and indicating that a parameter is missing is
a better solution.
> NullPointerException with no query or empty query
> -------------------------------------------------
>
> Key: SOLR-525
> URL: https://issues.apache.org/jira/browse/SOLR-525
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 1.3
> Environment: Tomcat 5.5
> Reporter: Lars Kotthoff
> Priority: Minor
> Attachments: solr-search-empty-query.patch,
> solr-search-empty-query.patch
>
>
> When calling the search URL with no query or an empty query (i.e.
> http://localhost:8080/solr/select/ or http://localhost:8080/solr/select/?q=),
> Solr throws a NullPointerException. The value for the query string returned
> by the SolrParams object is null, but QueryComponent tries to process it.
> I encountered this bug because of a bug in my application calling the search
> URL, but arguably the response should be more constructive.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.