[
https://issues.apache.org/jira/browse/LUCENE-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless resolved LUCENE-3831.
----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0
3.6
Thanks Alan.
I couldn't provoke an NPE on 3.x but I still fixed SpanWeight to not pass on a
null field to IR.norms.
> Passing a null fieldname to MemoryFields#terms in MemoryIndex throws a NPE
> --------------------------------------------------------------------------
>
> Key: LUCENE-3831
> URL: https://issues.apache.org/jira/browse/LUCENE-3831
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/index
> Affects Versions: 4.0
> Reporter: Alan Woodward
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 3.6, 4.0
>
> Attachments: LUCENE-3831.patch, TestNullFieldAfterRegexpRewrite.java,
> mindex-null-field.patch
>
>
> I found this when querying a MemoryIndex using a RegexpQuery wrapped by a
> SpanMultiTermQueryWrapper. If the regexp doesn't match anything in the
> index, it gets rewritten to an empty SpanOrQuery with a null field value,
> which then triggers the NPE.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]