Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在多线程情况下,mmseg4j出现空指针异常 #4

Open
MashupEye opened this issue Jan 19, 2016 · 0 comments
Open

在多线程情况下,mmseg4j出现空指针异常 #4

MashupEye opened this issue Jan 19, 2016 · 0 comments

Comments

@MashupEye
Copy link

java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859) ~[na:1.7.0_75]
at java.util.ArrayList$Itr.next(ArrayList.java:831) ~[na:1.7.0_75]
at com.chenlb.mmseg4j.rule.Rule.remainChunks(Rule.java:39) ~[na:na]
at com.chenlb.mmseg4j.ComplexSeg.seg(ComplexSeg.java:102) ~[na:na]
at com.chenlb.mmseg4j.MMSeg.next(MMSeg.java:179) ~[na:na]

由于com.chenlb.mmseg4j.rule.Rule类中chunks变量,在遍历这个对象的时候,有增加和删除操作会出现该异常。
请参考http://www.cnblogs.com/dolphin0520/p/3933551.html
谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant