Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
universal app sqlite using its show error System.NullReferenceException

private async void SaveUniversity()
{
if (University!= null && !string.IsNullOrEmpty(University.Name))
{
await _dataService.SaveUniversityAsync(University);
await this._messageBoxService.ShowAsync("Added university.", "SQLite Sample");
_navigationService.GoBack();
}
}


http://1drv.ms/1lxKaUK[^]
Posted
Comments
ZurdoDev 2-Jul-14 7:46am    
What's your question? A NullReferenceException means something you are trying to access is null. Just fix the code.

1 solution

VB
App.xaml.cs

OnLaunched


DataService.CreateDbAsync();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900