Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-3512

A search on '*' causes an NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.1.0
    • 2.6.0
    • Search

    Description

      Searching for * in the quick search yields:

      [java] 17:33:18 ERROR - Error while executing the search with '*'
      [java] java.lang.NullPointerException
      [java] at com.atlassian.fecru.search.common.lucene.PhraseScorer.<init>(PhraseScorer.java:71)
      [java] at com.atlassian.fecru.search.common.lucene.ExactPhraseScorer.<init>(ExactPhraseScorer.java:38)
      [java] at com.atlassian.fecru.search.common.lucene.PrefixPhraseQuery$PrefixPhraseQueryWeigh.scorer(PrefixPhraseQuery.java:181)
      [java] at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:149)
      [java] at org.apache.lucene.search.function.CustomScoreQuery$CustomWeight.scorer(CustomScoreQuery.java:359)
      [java] at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:306)
      [java] at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:306)
      [java] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:210)
      [java] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:170)
      [java] at org.apache.lucene.search.MultiSearcher$MultiSearcherCallableNoSort.call(MultiSearcher.java:363)
      [java] at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:208)
      [java] at org.apache.lucene.search.Searcher.search(Searcher.java:98)
      [java] at com.atlassian.fecru.search.common.lucene.RepositorySearcher.search(RepositorySearcher.java:134)
      [java] at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.search(QuickSearchAction.java:235)
      [java] at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.execute(QuickSearchAction.java:139)
      [java] at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
      [java] at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)

      Attachments

        Issue Links

          Activity

            People

              lpater Lukasz Pater
              npellow Nick
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: