Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-525

NullPointerException with no query or empty query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.3
    • None
    • search
    • None
    • Tomcat 5.5

    Description

      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.

      Attachments

        1. solr-search-empty-query.patch
          0.8 kB
          Lars Kotthoff

        Issue Links

          Activity

            People

              Unassigned Unassigned
              larsko Lars Kotthoff
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: