From b188d901f4dc2ed90121c2f7b229c9b4064e9a31 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 17 Dec 2018 16:25:04 +0000 Subject: [PATCH] Fixes a null ref exception --- Yavsc/Views/Shared/SignIn.cshtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Yavsc/Views/Shared/SignIn.cshtml b/Yavsc/Views/Shared/SignIn.cshtml index 1583ffb4..ab38673f 100644 --- a/Yavsc/Views/Shared/SignIn.cshtml +++ b/Yavsc/Views/Shared/SignIn.cshtml @@ -55,7 +55,7 @@

@SR["Use another service to log in"]:

- @if (Model.ExternalProviders.Count() == 0) + @if (Model.ExternalProviders==null || Model.ExternalProviders.Count() == 0) {

@@ -74,5 +74,6 @@ @Html.AntiForgeryToken() } - } + } } +