Benson Margulies created LUCENE-5244:
----------------------------------------

             Summary: NPE in Japanese Analyzer
                 Key: LUCENE-5244
                 URL: https://issues.apache.org/jira/browse/LUCENE-5244
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/analysis
    Affects Versions: 4.4
            Reporter: Benson Margulies


I've got a test case that shows an NPE with the Japanese analyzer.

It's all available in https://github.com/benson-basis/kuromoji-npe, and I 
explicitly grant a license to the Foundation.

If anyone would prefer that I attach a tarball here, just let me know.

{noformat}
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.basistech.testcase.JapaneseNpeTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.298 sec <<< 
FAILURE! - in com.basistech.testcase.JapaneseNpeTest
japaneseNpe(com.basistech.testcase.JapaneseNpeTest)  Time elapsed: 0.282 sec  
<<< ERROR!
java.lang.NullPointerException: null
        at 
org.apache.lucene.analysis.util.RollingCharBuffer.get(RollingCharBuffer.java:86)
        at 
org.apache.lucene.analysis.ja.JapaneseTokenizer.parse(JapaneseTokenizer.java:618)
        at 
org.apache.lucene.analysis.ja.JapaneseTokenizer.incrementToken(JapaneseTokenizer.java:468)
        at 
com.basistech.testcase.JapaneseNpeTest.japaneseNpe(JapaneseNpeTest.java:28)
{noformat}

--
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]

Reply via email to