Commit c1a9db3
Fix bug for when the first char is non-ascii char (#5)
Crashes with:
Index 258 out of bounds for length 256
java.lang.ArrayIndexOutOfBoundsException:
Index 258 out of bounds for length 256
This changes the check for first char with a direct range check.
Co-authored-by: Adrian Tosca <atosca@adobe.com>1 parent 791ad7b commit c1a9db3
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
- lib/src
- main/java/de/fxlae/typeid/lib
- test/java/de/fxlae/typeid/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
0 commit comments