Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit c277a46

Browse files
committed
Added NativeView NRE protection
1 parent b853c03 commit c277a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public override void ViewDidLayoutSubviews()
176176
UpdateUseSafeArea();
177177

178178
if (Element.Background != null && !Element.Background.IsEmpty)
179-
NativeView.UpdateBackgroundLayer();
179+
NativeView?.UpdateBackgroundLayer();
180180
}
181181

182182
public override void ViewSafeAreaInsetsDidChange()

0 commit comments

Comments
 (0)