Allan Rofer created LUCENE-5137:
-----------------------------------
Summary: 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
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]