Check for null cipher in edit (#1656)

This commit is contained in:
Robyn MacCallum 2022-05-10 13:33:16 -04:00 committed by GitHub
parent 81c6a4b1df
commit 136e8897ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
async editCipherId(id: string) { async editCipherId(id: string) {
const cipher = await this.cipherService.get(id); const cipher = await this.cipherService.get(id);
if (cipher.reprompt != 0) { if (cipher != null && cipher.reprompt != 0) {
if (!(await this.passwordRepromptService.showPasswordPrompt())) { if (!(await this.passwordRepromptService.showPasswordPrompt())) {
this.go({ cipherId: null }); this.go({ cipherId: null });
return; return;