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

Exception for "ich" #1

Open
JohnnyAW opened this issue Aug 4, 2016 · 1 comment
Open

Exception for "ich" #1

JohnnyAW opened this issue Aug 4, 2016 · 1 comment

Comments

@JohnnyAW
Copy link

JohnnyAW commented Aug 4, 2016

java.lang.ArrayIndexOutOfBoundsException: 5
at de.mfietz.jhyphenator.Hyphenator.hyphenate(Hyphenator.java:135)

as far as I could investigate, it seems that nodePointsLength is too big (4) for i = 2 at
for (int k = 0, nodePointsLength = nodePoints.length; k < nodePointsLength; k++) {
points[i + k] = Math.max(points[i + k], nodePoints[k]);
}

Hyphenator initialization:
HyphenationPattern de = HyphenationPattern.lookup("de");
Hyphenator h = Hyphenator.getInstance(de);

@gregko
Copy link

gregko commented Feb 11, 2018

Tested on my fork of JHyphenator (https://github.com/gregko/JHyphenator), works fine with "ich" too.

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

2 participants