NullPointerException in BiSegGraph.getShortPath (in smartcn chinese analyzer)
-----------------------------------------------------------------------------

                 Key: LUCENE-3049
                 URL: https://issues.apache.org/jira/browse/LUCENE-3049
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/analyzers
    Affects Versions: 3.1
            Reporter: Jonathan Young


Calling HHMMSegmenter.process() on a string which is longer than 32767 
characters will usually result in a NullPointerException being thrown with the 
following backtrace:

java.lang.NullPointerException
        at 
org.apache.lucene.analysis.cn.smart.hhmm.BiSegGraph.getShortPath(BiSegGraph.java:190)
        at 
org.apache.lucene.analysis.cn.smart.hhmm.HHMMSegmenter.process(HHMMSegmenter.java:208)

The root cause is the declaration of index as a _short_ at line 77 of 
modules/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegGraph.java
 .

--
This message is automatically generated by JIRA.
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