Check for null cipher in edit (#1656)
This commit is contained in:
parent
81c6a4b1df
commit
136e8897ae
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue