Hello,
I have a xamarin forms app, that crashes as soon as the schedule control is displayed only on iOS. On Android works fine!
I am using the 17.2.0.51 version of Syncfusion controls.
I have Visual Studio 2019 v. 16.3.1. The iOS emulator uses the latest version of Xcode v 11.0.
The control is hosted in master-detail page, and the error that I get is: System.NullReferenceException: Object reference not set to an instance of an object
I have initialized the Scheduler on
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer.Init();
// various init
LoadApplication(new App(fullpath));
return base.FinishedLaunching(app, options);
}
The full exception from Visual studio is the following.
he thread 0xa has exited with code 0 (0x0).
2019-09-27 12:35:48.041513+0300 EasyPlan.iOS[9355:358297]
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at Syncfusion.SfSchedule.iOS.HeaderView.UpdateHeaderStyle () [0x00096] in <5301650aaf554eeabe23d0cf6a5ff51f>:0
at Syncfusion.SfSchedule.iOS.SFSchedule.InitializeSchdule () [0x0001f] in <5301650aaf554eeabe23d0cf6a5ff51f>:0
at Syncfusion.SfSchedule.iOS.SFSchedule.LayoutSubviews () [0x00008] in <5301650aaf554eeabe23d0cf6a5ff51f>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamar
in.iOS/UIKit/UIApplication.cs:65
at EasyPlan.iOS.Application.Main (System.String[] args) [0x00001] in D:\TFSEH\EasyHotelia\EasyPlan\EasyPlan.iOS\Main.cs:17
2019-09-27 12:35:48.043302+0300 EasyPlan.iOS[9355:358297] Unhandled managed exception: Object reference not set to an instance of an object (System.NullReferenceException)
at Syncfusion.SfSchedule.iOS.HeaderView.UpdateHeaderStyle () [0x00096] in <5301650aaf554eeabe23d0cf6a5ff51f>:0
at Syncfusion.SfSchedule.iOS.SFSchedule.InitializeSchdule () [0x0001f] in <5301650aaf554eeabe23d0cf6a5ff51f>:0
at Syncfusion.SfSchedule.iOS.SFSchedule.LayoutSubviews () [0x00008] in <5301650aaf554eeabe23d0cf6a5ff51f>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/s
rc/Xamarin.iOS/UIKit/UIApplication.cs:65
at EasyPlan.iOS.Application.Main (System.String[] args) [0x00001] in D:\TFSEH\EasyHotelia\EasyPlan\EasyPlan.iOS\Main.cs:17