Fix Null Warnings (#874)
* Fixing null warnings * Fix null warnings Fix other compiler warnings
This commit is contained in:
@@ -16,10 +16,13 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@for (var row = 0; row < Model.RecoveryCodes.Length; row += 2)
|
||||
@if (Model.RecoveryCodes != null)
|
||||
{
|
||||
<code>@Model.RecoveryCodes[row]</code><text> </text><code>@Model.RecoveryCodes[row + 1]</code><br />
|
||||
@for (var row = 0; row < Model.RecoveryCodes.Length; row += 2)
|
||||
{
|
||||
<code>@Model.RecoveryCodes[row]</code><text> </text><code>@Model.RecoveryCodes[row + 1]</code><br />
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
© 2021 GitHub, Inc.
|
||||
© 2023 GitHub, Inc.
|
||||
@@ -30,15 +30,15 @@
|
||||
</article>
|
||||
|
||||
<article class="esh-orders-detail-items row">
|
||||
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress.Street</section>
|
||||
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress?.Street</section>
|
||||
</article>
|
||||
|
||||
<article class="esh-orders-detail-items row">
|
||||
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress.City</section>
|
||||
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress?.City</section>
|
||||
</article>
|
||||
|
||||
<article class="esh-orders-detail-items row">
|
||||
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress.Country</section>
|
||||
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress?.Country</section>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@if (Context.User.Identity.IsAuthenticated)
|
||||
@if (Context!.User!.Identity!.IsAuthenticated)
|
||||
{
|
||||
<section class="col-lg-4 col-md-5 col-xs-12">
|
||||
<div class="esh-identity">
|
||||
|
||||
Reference in New Issue
Block a user