Fixes a null ref exception

This commit is contained in:
2018-12-17 16:25:04 +00:00
parent eda0b7070b
commit b188d901f4

View File

@ -55,7 +55,7 @@
<hr/> <hr/>
<h2 class="lead text-left">@SR["Use another service to log in"]:</h2> <h2 class="lead text-left">@SR["Use another service to log in"]:</h2>
@if (Model.ExternalProviders.Count() == 0) @if (Model.ExternalProviders==null || Model.ExternalProviders.Count() == 0)
{ {
<div> <div>
<p> <p>
@ -74,5 +74,6 @@
@Html.AntiForgeryToken() @Html.AntiForgeryToken()
</form> </form>
} }
} } }
</div> </div>