Fix potential crash when reading very old attachments.
This commit is contained in:
parent
64ada79e8f
commit
24133c6dac
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue