[ https://issues.apache.org/jira/browse/LUCENE-4712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560891#comment-13560891 ]
Commit Tag Bot commented on LUCENE-4712: ---------------------------------------- [branch_4x commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1437606 LUCENE-4712: MemoryIndex throws NPE in #normValues(String) if field does not exist > NullPointer Exception in MemoryIndex.MemoryIndexReader > ------------------------------------------------------ > > Key: LUCENE-4712 > URL: https://issues.apache.org/jira/browse/LUCENE-4712 > Project: Lucene - Core > Issue Type: Bug > Components: modules/other > Affects Versions: 4.1 > Reporter: Ricky Pritchett > Assignee: Simon Willnauer > Fix For: 4.2, 5.0 > > Attachments: LUCENE-4712.patch > > > NullPointer Exceptions when searching on an index with a query that has a > field that's not in the index. > The NullPointer is thrown at line 1141: > public DocValues normValues(String field) { > if (fieldInfos.get(field).omitsNorms()) <---- //If fieldInfos doesn't > contain the field then a NullPointer is thrown. > return null; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org