mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Fix possible crash during restore.
This commit is contained in:
@@ -1604,7 +1604,7 @@ class AttachmentTable(
|
|||||||
|
|
||||||
val dataFilePath = hashMatch?.file?.absolutePath ?: fileWriteResult.file.absolutePath
|
val dataFilePath = hashMatch?.file?.absolutePath ?: fileWriteResult.file.absolutePath
|
||||||
|
|
||||||
if (archiveRestore) {
|
if (archiveRestore && existingPlaceholder.dataHash != null) {
|
||||||
// Can update all rows with the same mediaName as data_file column will likely be null
|
// Can update all rows with the same mediaName as data_file column will likely be null
|
||||||
db.update(TABLE_NAME)
|
db.update(TABLE_NAME)
|
||||||
.values(values)
|
.values(values)
|
||||||
|
|||||||
Reference in New Issue
Block a user