Skip to content

Commit

Permalink
Handle null icon
Browse files Browse the repository at this point in the history
  • Loading branch information
QZHelen committed Nov 26, 2024
1 parent b3d861c commit 8c990e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/credman/cmwallet/ui/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fun CredentialCard(
onCredentialClick: (CredentialItem) -> Unit
) {
val metadata = cred.metadata
val cardArt = Base64.decode(metadata.icon, 0)
val cardArt = metadata.icon?.let { Base64.decode(it, 0) } ?: ByteArray(0)
Card(
modifier = Modifier.size(350.dp, 210.dp),
shape = CardDefaults.shape,
Expand Down

0 comments on commit 8c990e4

Please sign in to comment.