We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8499402 commit 1339c44Copy full SHA for 1339c44
app/src/main/java/org/thoughtcrime/securesms/jobs/UploadAttachmentToArchiveJob.kt
@@ -121,6 +121,11 @@ class UploadAttachmentToArchiveJob private constructor(
121
return Result.failure()
122
}
123
124
+ if (attachment.uri == null) {
125
+ Log.w(TAG, "[$attachmentId] Attachment has no uri! Cannot upload.")
126
+ return Result.failure()
127
+ }
128
+
129
if (attachment.archiveTransferState == AttachmentTable.ArchiveTransferState.FINISHED) {
130
Log.i(TAG, "[$attachmentId] Already finished. Skipping.")
131
return Result.success()
0 commit comments