From 1d105925e2c86931b2f057173e7c3876b22fe871 Mon Sep 17 00:00:00 2001 From: mikeplotean Date: Mon, 6 Nov 2023 17:03:48 +0200 Subject: [PATCH] fix: missing parameter --- .../statuslist2021/StatusList2021EntryClientService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/id/walt/signatory/revocation/statuslist2021/StatusList2021EntryClientService.kt b/src/main/kotlin/id/walt/signatory/revocation/statuslist2021/StatusList2021EntryClientService.kt index b60c55c6..971e719a 100644 --- a/src/main/kotlin/id/walt/signatory/revocation/statuslist2021/StatusList2021EntryClientService.kt +++ b/src/main/kotlin/id/walt/signatory/revocation/statuslist2021/StatusList2021EntryClientService.kt @@ -47,7 +47,11 @@ class StatusList2021EntryClientService: RevocationClientService { bitSet.set(idx) val encodedList = createEncodedBitString(bitSet) // create / update the status list credential - credentialStorage.store(statusCredential.id!!, credentialSubject.statusPurpose, String(encodedList)) + statusCredential.issuerId?.let { + credentialStorage.store( + it, statusCredential.id!!, credentialSubject.statusPurpose, String(encodedList) + ) + } ?: throw IllegalArgumentException("Missing issuer for statusList credential.") } private fun extractStatusListCredentialSubject(statusCredentialUrl: String): StatusListCredentialSubject? =