mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix potential crash when reading very old attachments.
This commit is contained in:
@@ -1492,7 +1492,7 @@ class AttachmentTable(
|
||||
.where("$ID = ?", attachmentId.id)
|
||||
.run()
|
||||
.readToSingleObject { cursor ->
|
||||
if (cursor.isNull(DATA_FILE)) {
|
||||
if (cursor.isNull(DATA_FILE) || cursor.isNull(DATA_RANDOM)) {
|
||||
null
|
||||
} else {
|
||||
cursor.readDataFileInfo()
|
||||
|
||||
Reference in New Issue
Block a user