You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.ArrayIndexOutOfBoundsException: Index 3617 out of bounds for length 256
at com.github.f4b6a3.ulid.Ulid.isValidCharArray(Ulid.java:801)
at com.github.f4b6a3.ulid.Ulid.toCharArray(Ulid.java:776)
at com.github.f4b6a3.ulid.Ulid.from(Ulid.java:325)
when the input string contains characters represented by more than 1 byte - in this example 3617. I had a string of length 26 java char however some of them are 2 bytes, rather than 1 (java char type is 2B). I'd expect the library to handle the input validity correctly and consistently throw IllegalArgumentException on invalid input.
The text was updated successfully, but these errors were encountered:
When using
it fails with
when the input string contains characters represented by more than 1 byte - in this example 3617. I had a string of length 26 java
char
however some of them are 2 bytes, rather than 1 (javachar
type is 2B). I'd expect the library to handle the input validity correctly and consistently throwIllegalArgumentException
on invalid input.The text was updated successfully, but these errors were encountered: