Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 62816 invoked from network); 13 Apr 2011 15:39:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2011 15:39:47 -0000 Received: (qmail 90778 invoked by uid 500); 13 Apr 2011 15:39:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 90688 invoked by uid 500); 13 Apr 2011 15:39:46 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 90597 invoked by uid 99); 13 Apr 2011 15:39:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2011 15:39:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2011 15:39:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D82EFA07BC for ; Wed, 13 Apr 2011 15:39:05 +0000 (UTC) Date: Wed, 13 Apr 2011 15:39:05 +0000 (UTC) From: "wangzhenghang (JIRA)" To: dev@lucene.apache.org Message-ID: <1637282360.55212.1302709145882.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (LUCENE-3026) smartcn analysis throw NullPointer exception when the length of analysed text over 32767 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org smartcn analysis throw NullPointer exception when the length of analysed text over 32767 ---------------------------------------------------------------------------------------- Key: LUCENE-3026 URL: https://issues.apache.org/jira/browse/LUCENE-3026 Project: Lucene - Java Issue Type: Bug Components: contrib/analyzers Affects Versions: 3.1, 4.0 Reporter: wangzhenghang That all because of org.apache.lucene.analysis.cn.smart.hhmm.SegGraph's makeIndex() method: public List makeIndex() { List result = new ArrayList(); int s = -1, count = 0, size = tokenListTable.size(); List tokenList; short index = 0; while (count < size) { if (isStartExist(s)) { tokenList = tokenListTable.get(s); for (SegToken st : tokenList) { st.index = index; result.add(st); index++; } count++; } s++; } return result; } 'short index = 0;' should be 'int index = 0;'. And that's reported here http://code.google.com/p/imdict-chinese-analyzer/issues/detail?id=2, http://code.google.com/p/imdict-chinese-analyzer/issues/detail?id=11, the author XiaoPingGao have already fixed this bug:http://code.google.com/p/imdict-chinese-analyzer/source/browse/trunk/src/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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org