[
https://issues.apache.org/jira/browse/LUCENE-5137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir resolved LUCENE-5137.
---------------------------------
Resolution: Not A Problem
The best effort is throwing a problem because the consumer (you) isn't calling
reset.
See the javadocs of tokenstream. you must call reset before the incrementToken
loop.
> UAX29URLEmailTokenizer.java causes NullPointerException in 4.3 and 4.4
> ----------------------------------------------------------------------
>
> Key: LUCENE-5137
> URL: https://issues.apache.org/jira/browse/LUCENE-5137
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 4.3
> Environment: Windows 7
> Reporter: Allan Rofer
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> There is a comment (best effort NPE if you dont call reset) in the
> "getScannerFor" method in UAX29URLEmailTokenizer. The callers of
> getScannerFor do NOT call reset, so an NPE is thrown in the parser which has
> a null Reader. If you put the line "this.scanner.yyreset(input);" after each
> call to getScannerFor, the NPE is avoided.
--
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: [email protected]
For additional commands, e-mail: [email protected]