mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Prevent potential NPE
This commit is contained in:
@@ -413,7 +413,7 @@
|
||||
}
|
||||
|
||||
const loadData = Attachment.loadData(migrationContext.readAttachmentData);
|
||||
const attachments = this.model.get('attachments');
|
||||
const attachments = this.model.get('attachments') || [];
|
||||
const loadedAttachmentViews = Promise.all(attachments.map(attachment =>
|
||||
new Promise(async (resolve) => {
|
||||
const attachmentWithData = await loadData(attachment);
|
||||
|
||||
Reference in New Issue
Block a user