1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

null check

This commit is contained in:
Kyle Spearrin 2018-12-12 15:01:23 -05:00
parent 61d37615af
commit 31cb6916c6

View File

@ -34,7 +34,7 @@ export class UnsecuredWebsitesReportComponent extends CipherReportComponent impl
if (c.type !== CipherType.Login || !c.login.hasUris) { if (c.type !== CipherType.Login || !c.login.hasUris) {
return false; return false;
} }
return c.login.uris.find((u) => u.uri.indexOf('http://') === 0) != null; return c.login.uris.find((u) => u.uri != null && u.uri.indexOf('http://') === 0) != null;
}); });
this.ciphers = unsecuredCiphers; this.ciphers = unsecuredCiphers;
} }