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

NullPointerException for query type 'query' without '{! ...}' syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0, 6.0
    • 7.2
    • query parsers
    • None

    Description

      The 'query' query type, corresponding to NestedQParserPlugin, expects a query of form: "

      {! ... }

      ...". An empty q parameter, or a list of search terms causes a NullPointerException because NestedQParserPlugin.createParser receives a localParams == null, which is then used without checking in NestedQParserPlugin.QParser.parse().

      Correct behaviour is currently ambiguous: throw a syntax error? or execute the query with the default parser?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jnothman Joel Nothman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: