Skip to content
Snippets Groups Projects
Unverified Commit cc3b5fbc authored by Chilja Gossow's avatar Chilja Gossow Committed by GitHub
Browse files

Qr code not nullable (DEV) (#3516)

* not nullable

* merge conflict
parent 321691ec
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ data class RecoveryCertificateContainer( ...@@ -22,7 +22,7 @@ data class RecoveryCertificateContainer(
@delegate:Transient @delegate:Transient
private val certificateData: DccData<RecoveryDccV1> by lazy { private val certificateData: DccData<RecoveryDccV1> by lazy {
data.recoveryCertificateQrCode!!.let { data.recoveryCertificateQrCode.let {
( (
qrCodeExtractor.extract( qrCodeExtractor.extract(
it, it,
...@@ -94,7 +94,7 @@ data class RecoveryCertificateContainer( ...@@ -94,7 +94,7 @@ data class RecoveryCertificateContainer(
get() = header.expiresAt get() = header.expiresAt
override val qrCode: QrCodeString override val qrCode: QrCodeString
get() = data.recoveryCertificateQrCode!! get() = data.recoveryCertificateQrCode
} }
} }
} }
...@@ -3,9 +3,9 @@ package de.rki.coronawarnapp.covidcertificate.recovery.core.storage ...@@ -3,9 +3,9 @@ package de.rki.coronawarnapp.covidcertificate.recovery.core.storage
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class StoredRecoveryCertificateData( data class StoredRecoveryCertificateData(
@SerializedName("recoveryCertificateQrCode") override val recoveryCertificateQrCode: String?, @SerializedName("recoveryCertificateQrCode") override val recoveryCertificateQrCode: String,
) : StoredRecoveryCertificate ) : StoredRecoveryCertificate
interface StoredRecoveryCertificate { interface StoredRecoveryCertificate {
val recoveryCertificateQrCode: String? val recoveryCertificateQrCode: String
} }
...@@ -3,7 +3,7 @@ package de.rki.coronawarnapp.covidcertificate.test.core.storage.types ...@@ -3,7 +3,7 @@ package de.rki.coronawarnapp.covidcertificate.test.core.storage.types
import org.joda.time.Instant import org.joda.time.Instant
/** /**
* Common data for test certificates, idepdent of whether they were retrieved or scanned. * Common data for test certificates, independent of whether they were retrieved or scanned.
*/ */
sealed class BaseTestCertificateData { sealed class BaseTestCertificateData {
abstract val identifier: String abstract val identifier: String
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment