Skip to content

Commit

Permalink
fix: missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Nov 6, 2023
1 parent 4fb6bba commit 1d10592
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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? =
Expand Down

0 comments on commit 1d10592

Please sign in to comment.