Closed JavadocMD closed 2 years ago
Geohasher throws an exception when decoding a hash of more than 12 characters (with default configuration). This should instead silently truncate to the number of characters allowed for the configured precision.
Geohasher.decode("spuxq0mctb6uz"); // throws java.lang.ArrayIndexOutOfBoundsException
Another poorly-handled edge-case:
Geohasher.decode(""); // throws java.lang.ArrayIndexOutOfBoundsException
Geohasher throws an exception when decoding a hash of more than 12 characters (with default configuration). This should instead silently truncate to the number of characters allowed for the configured precision.