Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

NullReference exception to View object

$
0
0

Weird one this. Getting a non-consistent "NullReferenceException" on the public View object inside a VC.

Here's the line of code - this is being executed after View has loaded, and not inside ViewDidLoad/ViewWillAppear etc. View is null. Doesn't happen every time this is executed, just occasionally. Any ideas?

sgListings = new ListingsGrid(new RectangleF(10, 10, View.Bounds.Size.Width-20, View.Bounds.Size.Height-20));


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>