Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Default MasterDetailPage - System.NullReferenceException

$
0
0

Hi, I create new project, add MasterDetailPage and getting exception in ios and android previewer:

2019-04-23 23:01:11.9] ERROR: : iOSXamlRenderer had a rendering error: System.NullReferenceException: Object reference not set to an instance of an object
Test.MasterView..ctor () in /Users/tpmanc/Projects/Test/Test/MasterView.xaml.cs:18
Test.App..ctor () in /Users/tpmanc/Projects/Test/Test/App.xaml.cs:18
<unknown method>
System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/MonoMethod.cs:667

App.xaml.cs:18:
MainPage = new MyMasterDetailPage();

MasterView.xaml.cs:18:
MasterPage.ListView.ItemSelected += ListView_ItemSelected;

Can anybody please help me? Thanks in advance


Viewing all articles
Browse latest Browse all 77050

Trending Articles