[
https://issues.apache.org/jira/browse/LUCENE-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Young updated LUCENE-3049:
-----------------------------------
Comment: was deleted
(was: Patch attached.)
> 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
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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]