首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

ictclas4j整合

2012-10-15 
ictclas4j调整?Ictclas4j在处理一些文档片段时候,会报如下异常:Exception in thread main java.lang.Nul

ictclas4j调整

?

Ictclas4j在处理一些文档片段时候,会报如下异常:

Exception in thread "main" java.lang.NullPointerException at org.ictclas4j.bean.Dictionary.getMaxMatch

?

问题出在Dictionary.java文件的

for (int j = 0; j < wis.size(); j++) {

?

中的wis为null。

?

可以在该行代码前增加代码段:

// summerbell

?if (wis == null) { return null; }

// end of summerbell

?

以便于后续其他处理。

?

热点排行