From 429e62e6b57153afdeee9e1f0cd94f03531b1113 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 19 Nov 2019 07:47:01 -0500 Subject: [PATCH] Don't index a "never" uri match. --- src/iOS.Core/Utilities/ASHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iOS.Core/Utilities/ASHelpers.cs b/src/iOS.Core/Utilities/ASHelpers.cs index 4d51763a7..d0260e055 100644 --- a/src/iOS.Core/Utilities/ASHelpers.cs +++ b/src/iOS.Core/Utilities/ASHelpers.cs @@ -70,7 +70,7 @@ namespace Bit.iOS.Core.Utilities { 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)) { return null;