I'm having an issue where I'm trying to fetch a user's profile from a web server. This call resided inside ViewDidLoad() like follows:
var result = await FetchProfile();
Inside Fetch Profile resides the actual awaited http call to the server. The problem is that the await does not stop the execution until it's complete. The execution continues along and crashes as soon as a member of the
result is needed. As soon as this happens, I get a null ref exception and the application crashes.
Can anyone help please? What am I missing?