Don't index a "never" uri match.

This commit is contained in:
Kyle Spearrin 2019-11-19 07:47:01 -05:00
parent b0b7f2afdf
commit 429e62e6b5

View file

@ -70,7 +70,7 @@ namespace Bit.iOS.Core.Utilities
{ {
return null; return null;
} }
var uri = cipher.Login.Uris.FirstOrDefault()?.Uri; var uri = cipher.Login.Uris.FirstOrDefault(u => u.Match != Bit.Core.Enums.UriMatchType.Never)?.Uri;
if(string.IsNullOrWhiteSpace(uri)) if(string.IsNullOrWhiteSpace(uri))
{ {
return null; return null;