Skip to content

Commit 31dcb04

Browse files
committed
Correct location for codec bound test.
1 parent 35a2454 commit 31dcb04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/AbbreviationLabel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ private static int findPrefix(Trie trie, String string, int i, int best) {
411411
if (i == string.length())
412412
return best;
413413
final char c = norm(string.charAt(i));
414+
if (c > 128)
415+
return best;
414416
return findPrefix(trie.children[c], string, i + 1, best);
415417
}
416418

0 commit comments

Comments
 (0)