mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 22:20:20 +00:00
Fix NPE when the attachment for a link preview is null.
This commit is contained in:
committed by
Greyson Parrelli
parent
cb0208af4d
commit
3edc97eb38
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user