We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

On Android, when swapping the control to DayView, if the day being swapped to has an Appointment/Event on that day, the app will crash

See title.

It seems to only be happening on Android, on iOS the control works great.

Here's the stacktrace:

    Message: Object reference not set to an instance of an object
Syncfusion.SfSchedule.XForms.Droid.ScheduleHelper.Convert(Xamarin.Forms.View source, Xamarin.Forms.VisualElement valid, Android.Content.Context context) in <a010e4a2e3ed436e9e98e16192bf4b99>:0
Syncfusion.SfSchedule.XForms.Droid.ScheduleHelper.ConvertFormsToNativeViewSize(Syncfusion.SfSchedule.XForms.SfSchedule formSchedule, Xamarin.Forms.View view, Android.Views.ViewGroup+LayoutParams layoutParams, Android.Content.Context context) in <a010e4a2e3ed436e9e98e16192bf4b99>:0
Syncfusion.SfSchedule.XForms.UWP.DependencyServices.EventsArgumentsHelper.UpdateAppointmentLoadedEventArgsValues(Syncfusion.SfSchedule.XForms.SfSchedule formsSchedule, Com.Syncfusion.Schedule.SfSchedule nativeSchedule, Com.Syncfusion.Schedule.AppointmentLoadedEventArgs nativeAppointmentLoadedEventArgs, Syncfusion.SfSchedule.XForms.AppointmentLoadedEventArgs appointmentLoadedEventArgs) in <a010e4a2e3ed436e9e98e16192bf4b99>:0
Syncfusion.SfSchedule.XForms.Droid.ScheduleEventDependencyService.NativeSchedule_AppointmentLoaded(System.Object sender, Com.Syncfusion.Schedule.AppointmentLoadedEventArgs e) in <a010e4a2e3ed436e9e98e16192bf4b99>:0
Com.Syncfusion.Schedule.SfSchedule.RaiseAppointmentLoadedEvent(Com.Syncfusion.Schedule.AppointmentLoadedEventArgs args) in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0
Com.Syncfusion.Schedule.AppointmentView.UpdateAppointmentView(Com.Syncfusion.Schedule.SfSchedule schedule, Com.Syncfusion.Schedule.AppointmentView appointmentView, System.Single left, System.Single top, System.Single width, System.Single height) in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0
Com.Syncfusion.Schedule.DayAppointmentLayout.OnMeasure(System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0
Android.Views.View.n_OnMeasure_II(System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) in <e0723311510f44e7a8db49d026aacebe>:0
Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod(Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) in <a2a2a1422a634f2a82146e66c17e9026>:0
Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod(System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) in <a2a2a1422a634f2a82146e66c17e9026>:0
Android.Views.View.Measure(System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) in <e0723311510f44e7a8db49d026aacebe>:0
Com.Syncfusion.Schedule.DayAppointmentLayout.UpdateAppointments(System.Collections.ObjectModel.ObservableCollection`1[T] visibleAppointments) in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0
Com.Syncfusion.Schedule.ParentDayLayout.UpdateAppointments(Com.Syncfusion.Schedule.ScheduleAppointmentCollection appointments, System.Int32 columnCount) in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0
Com.Syncfusion.Schedule.SfSchedule.UpdateAppointmentView(Com.Syncfusion.Schedule.ScheduleAppointmentCollection visibleAppointments) in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0
Com.Syncfusion.Schedule.SfSchedule.UpdateAppointments() in <9413ef877fd24d6e9d1ad7d1c87cf9c5>:0

1 Reply

Subburaj Pandian Veluchamy March 4, 2019 07:25 AM UTC

Hi Akin, 
 
Thank you for contacting Syncfusion support. 

We have already found and fixed the reported issue with “Schedule Appointment custom view rendering” in Xamarin.Forms. The issue occurs only when the project Xamarin.Forms update version above 3.5 and it is not occurring the previous updates. 
 
This issue fix will be included in our upcoming Volume 1 beta release which is expected be available by mid of March, 2019. 
 
We appreciate your patience and please use the earlier Xamarin.Forms updates (3.4 and earlier) until then.  
 
Regards,
Subburaj Pandian V  

Loader.
Live Chat Icon For mobile
Up arrow icon