[app] fix NPE when de-serializing apkFile

Closes acra-crash-reports#127
This commit is contained in:
Torsten Grote 2022-12-20 11:46:59 -03:00
parent b6ad769bc0
commit efafc86b87
No known key found for this signature in database
GPG Key ID: 3E5F77D92CF891FF
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ public data class FileV1(
) : IndexFile {
public companion object {
@JvmStatic
public fun deserialize(string: String): FileV1 {
public fun deserialize(string: String?): FileV1? {
if (string == null) return null
return IndexParser.json.decodeFromString(string)
}
}