From 2f04c0726254dcaf946976656df919629c35eda7 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 9 May 2022 14:53:31 -0400 Subject: [PATCH] Check for null cipher in edit (#1646) Null ciphers signify a _new_ cipher, so no password repromt is required --- .../modules/organization-vault/organization-vault.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts b/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts index ef5a8cf289..a675a9e82e 100644 --- a/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts +++ b/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts @@ -262,7 +262,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy { async editCipherId(cipherId: string) { const cipher = await this.cipherService.get(cipherId); - if (cipher.reprompt != 0) { + if (cipher != null && cipher.reprompt != 0) { if (!(await this.passwordRepromptService.showPasswordPrompt())) { this.go({ cipherId: null }); return;