Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.6.1
-
Component/s: o.c.jsword.book.filter.gbf
-
Labels:None
Description
I'm not able to replicate and have lost the stack trace, but here's the cause of it, and the fix should be easy. Not sure why I can't replicate though:
Exception: String index out of range: 8
so if 'remains' is of length 8, ltpos = 7 => StringIndexOutOfBoundsException
Code:
if (ltpos >= 0
&& ltpos < remains.length()
&& Character.isUpperCase(remains.charAt(ltpos + 1)))
Is the easy fix just to ensure that ltpost < remains.length() - 1
Or is more complicated than that?