[ https://issues.apache.org/jira/browse/LUCENE-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591647#action_12591647 ]
Benjamin Pasero commented on LUCENE-1263: ----------------------------------------- The problem is actually a SpanNearQuery with an empty list of Spans, zero slop and TRUE for the inOrder attribute. I have special cased this in our lucene usage so that we dont run into this issue again. Still I think it should not cause this NPE in Lucene. > NullPointerException in java.util.Hashtable from executing a Query > ------------------------------------------------------------------ > > Key: LUCENE-1263 > URL: https://issues.apache.org/jira/browse/LUCENE-1263 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.1 > Reporter: Benjamin Pasero > Priority: Minor > > Lately we are seeing this stacktrace showing up when executing a Query. Any > ideas? > java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482) > at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167) > at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72) > at > org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100) > at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192) > at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66) > at org.apache.lucene.search.Hits.(Hits.java:45) > at org.apache.lucene.search.Searcher.search(Searcher.java:45) > at org.apache.lucene.search.Searcher.search(Searcher.java:37) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]