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)
|
.where("$ID = ?", attachmentId.id)
|
||||||
.run()
|
.run()
|
||||||
.readToSingleObject { cursor ->
|
.readToSingleObject { cursor ->
|
||||||
if (cursor.isNull(DATA_FILE)) {
|
if (cursor.isNull(DATA_FILE) || cursor.isNull(DATA_RANDOM)) {
|
||||||
null
|
null
|
||||||
} else {
|
} else {
|
||||||
cursor.readDataFileInfo()
|
cursor.readDataFileInfo()
|
||||||
|
|
Loading…
Add table
Reference in a new issue