yuntians / paoding

Automatically exported from code.google.com/p/paoding
0 stars 0 forks source link

PaodingTokenizer -> close method throws NullPointerException #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
when i use PaodingAnalyzer to build index, i always meet this problem -
"Exception in thread "main" java.lang.NullPointerException at 
net.paoding.analysis.analyzer.PaodingTokenizer.close".

The source of PaodingTokenizer.close() method use super.close(). And the 
super.close() method will close the input and let it be null. 

Original issue reported on code.google.com by gzkentk...@gmail.com on 4 Sep 2010 at 1:23

GoogleCodeExporter commented 8 years ago
what's the paoding version you use now?

Original comment by yuweimin...@gmail.com on 6 Sep 2010 at 3:37

GoogleCodeExporter commented 8 years ago
I've check it out in this address: http://paoding.googlecode.com/svn/trunk/

Original comment by gzkentk...@gmail.com on 6 Sep 2010 at 3:42

GoogleCodeExporter commented 8 years ago
qieqie兄请快点修复这些BUG,我们等不及了!谢谢!

Original comment by panxiuya...@gmail.com on 8 Sep 2010 at 1:24

GoogleCodeExporter commented 8 years ago
qieqie兄请快点修复这些BUG,我们等不及了!谢谢!

Original comment by panxiuya...@gmail.com on 8 Sep 2010 at 1:24

GoogleCodeExporter commented 8 years ago
收到,不过有人可以修复吗?我可以设置其为commiter

Original comment by qieqie.wang on 8 Sep 2010 at 1:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
更改Paodingtokenizer.java 164 行 左右,
先判断后关闭 如:if( input != null)
            input.close();

另:当keywords 
超过二个(目前简单测试)字时(英文单词),在使用PaodingA
nalyzer 进行字线查询时,Beaf中index可增加至128. 
加上以下语句可看出此问题.
if ((index < 0) || (index >= count)) {
            throw new StringIndexOutOfBoundsException(index);
        },
造成无法正常使用,在对万、亿进行处理事,溢出,可更改��
�LONG或者16进制表示。
以上是一点拙见,可随时交流。如:qieqie兄同意,愿意参与其中
。

Original comment by CYC.Soft@gmail.com on 14 Sep 2010 at 6:16

GoogleCodeExporter commented 8 years ago
已增加为commiter,请fix

Original comment by qieqie.wang on 14 Sep 2010 at 6:34

GoogleCodeExporter commented 8 years ago
谢谢,我先仔细研究下,修改完后一并提交,由于能力有限��
�还请多指教。我可能会修改成支持3.0.2版本的

Original comment by CYC.Soft@gmail.com on 14 Sep 2010 at 11:42