[ 
https://issues.apache.org/jira/browse/LUCENE-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025929#comment-13025929
 ] 

Jonathan Young edited comment on LUCENE-3049 at 4/27/11 6:17 PM:
-----------------------------------------------------------------

In preparing the patch, I updated, and then discovered it had already been 
recently fixed at revision 1092328.

      was (Author: jyoung):
    Recently fixed at revision 1092328.
  
> 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]

Reply via email to