Skip to content

Commit

Permalink
Merge pull request ministero-salute#78 from ministero-salute/feature/…
Browse files Browse the repository at this point in the history
…align-to-last-core-version

feat: align to last core version
  • Loading branch information
it-eucert-team authored Jul 29, 2021
2 parents 71a4ce5 + c327656 commit 7cc3992
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ class VerificationViewModel @Inject constructor(
withContext(dispatcherProvider.getIO()) {
val plainInput = prefixValidationService.decode(code, verificationResult)
val compressedCose = base45Service.decode(plainInput, verificationResult)
val cose = compressorService.decode(compressedCose, verificationResult)
val cose: ByteArray? = compressorService.decode(compressedCose, verificationResult)
if (cose == null) {
Log.d(TAG, "Verification failed: Too many bytes read")
return@withContext
}

val coseData = coseService.decode(cose, verificationResult)
if (coseData == null) {
Expand Down

0 comments on commit 7cc3992

Please sign in to comment.