You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Allan Rofer (JIRA)" <ji...@apache.org> on 2013/07/26 02:25:48 UTC

[jira] [Created] (LUCENE-5137) UAX29URLEmailTokenizer.java causes NullPointerException in 4.3 and 4.4

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org