diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pluto/PlutoRestoreTask.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pluto/PlutoRestoreTask.kt index 14a14cff1..7ba84433f 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pluto/PlutoRestoreTask.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pluto/PlutoRestoreTask.kt @@ -122,7 +122,9 @@ class PlutoRestoreTask( } BackUpRestorationId.ANONCRED.value -> { - Json.decodeFromString(it.data.base64UrlDecoded) + val json = it.data.base64UrlDecoded + .replace("\"null\"", "null") + Json.decodeFromString(json) .toAnonCredential().toStorableCredential() }