Solves crashing when a p-tag contains only "ffff"
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ class RobohashAssembler {
|
|||||||
isLightTheme: Boolean,
|
isLightTheme: Boolean,
|
||||||
): ImageVector {
|
): ImageVector {
|
||||||
val hash =
|
val hash =
|
||||||
if (HexValidator.isHex(msg)) {
|
if (HexValidator.isHex(msg) && msg.length > 10) {
|
||||||
Hex.decode(msg)
|
Hex.decode(msg)
|
||||||
} else {
|
} else {
|
||||||
Log.w("Robohash", "$msg is not a hex")
|
Log.w("Robohash", "$msg is not a hex")
|
||||||
|
|||||||
Reference in New Issue
Block a user