diff --git a/src/commands/get.command.ts b/src/commands/get.command.ts index bd05172e76..f4299461c4 100644 --- a/src/commands/get.command.ts +++ b/src/commands/get.command.ts @@ -253,7 +253,7 @@ export class GetCommand { } const cipher = await this.getCipherView(itemId); - if (cipher == null || Array.isArray(cipher) || cipher.attachments.length === 0) { + if (cipher == null || Array.isArray(cipher) || cipher.attachments == null || cipher.attachments.length === 0) { return Response.error('No attachments available for this item.'); }