mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-17 21:31:57 +01:00
Solves crashing when a p-tag contains only "ffff"
This commit is contained in:
parent
fc72e20da7
commit
266d4cb34f
@ -165,7 +165,7 @@ class RobohashAssembler {
|
||||
isLightTheme: Boolean,
|
||||
): ImageVector {
|
||||
val hash =
|
||||
if (HexValidator.isHex(msg)) {
|
||||
if (HexValidator.isHex(msg) && msg.length > 10) {
|
||||
Hex.decode(msg)
|
||||
} else {
|
||||
Log.w("Robohash", "$msg is not a hex")
|
||||
|
Loading…
x
Reference in New Issue
Block a user