Fix NPE when the attachment for a link preview is null.
This commit is contained in:
parent
cb0208af4d
commit
3edc97eb38
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ object Stories {
|
|||
ApplicationDependencies.getJobManager().add(job)
|
||||
}
|
||||
|
||||
if (record.hasLinkPreview()) {
|
||||
if (record.hasLinkPreview() && record.linkPreviews[0].attachmentId != null) {
|
||||
ApplicationDependencies.getJobManager().add(
|
||||
AttachmentDownloadJob(record.id, record.linkPreviews[0].attachmentId, true)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue