If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt( at at at at org.ansj.util.MyStaticValue.initCRFModel( at org.ansj.util.MyStaticValue.getCRFSplitWord( at org.ansj.util.MyStaticValue.getCRFSplitWord( at org.ansj.splitWord.analysis.NlpAnalysis.<init>( at org.ansj.splitWord.analysis.NlpAnalysis.parse( at segment.demo.main(

Users with the same issue

1 times, last one,
32257 times, last one,
4 times, last one,
Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
30 more bugmates