A search on '*' causes an NPE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 3.1.0
    • Affects Version/s: 2.6.0
    • Component/s: Search

      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)

            Assignee:
            Lukasz Pater
            Reporter:
            Nick
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: