SfScheduleMapping NullReferenceException when appointment implements INotifyPropertyChanged

Getting the error below when using ScheduleAppointmentMapping to a custom class that implements INotifyPropertyChanged.

When you navigate away from the Scheduler page and then back (Shell layout), create a new event and then try to edit it, you get the below (sample project attached):



{System.NullReferenceException: Object reference not set to an instance of an object.

  at Syncfusion.SfSchedule.XForms.Droid.SfScheduleMapping.Appointment_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x0007d] in <58c05967562b41019081da4555976b8f>:0

  at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)

  at MdTab.Models.Appointment.set_StartTime (System.DateTime value) [0x00010] in D:\Users\Michalis\Documents\Development\MobOrder\MdTab\MdTab\Models\Appointment.cs:47

  at MdTab.Models.Appointment.AppointmentModelDataChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x0003c] in D:\Users\Michalis\Documents\Development\MobOrder\MdTab\MdTab\Models\Appointment.cs:78

  at MdTab.Models.Visit.OnPropertyChanged (System.String propertyName) [0x00001] in D:\Users\Michalis\Documents\Development\MobOrder\MdTab\MdTab\Models\Visit.cs:83

  at MdTab.Models.Visit.set_FromDateTime (System.DateTime value) [0x00010] in D:\Users\Michalis\Documents\Development\MobOrder\MdTab\MdTab\Models\Visit.cs:34

  at MdTab.ViewModels.ScheduleViewModel.SaveVisit (MdTab.Models.Visit visit) [0x0022e] in D:\Users\Michalis\Documents\Development\MobOrder\MdTab\MdTab\ViewModels\ScheduleViewModel.cs:820

  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr)

  at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr)}



Attachment: MobApp1_10f343eb.zip

7 Replies

SS SaiGanesh Sakthivel Syncfusion Team December 7, 2020 04:14 AM UTC

Hi Michael, 
 
Thank you for contacting syncfusion support. 
 
#Regarding SfScheduleMapping NullReferenceException when appointment implements INotifyPropertyChanged 
Currently, we are validating the reported scenario and we will update the further details on or before the December 8,2020. We appreciate your patience until then. 
 
Regards, 
SaiGanesh Sakthivel 



MS Muniappan Subramanian Syncfusion Team December 8, 2020 06:55 AM UTC

Hi Michael Kanios,

Thank you for your patience.

We have analyzed the reported issue and we have already found and fixed the issue and it will be included in our upcoming weekly Nuget package, which is expected to roll out on 15th December 2020.

We appreciate your patience until then.

Regards,
Muniappan S.


MK Michael Kanios December 8, 2020 08:30 AM UTC

Thx Muniappan.

Your support is much appreciated!


SS SaiGanesh Sakthivel Syncfusion Team December 9, 2020 08:30 AM UTC

Hi Michael, 
 
Thank you for the update. 
 
We will let you know once the release rolled out. We appreciate your patience until then. 
 
Regards, 
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team December 15, 2020 12:28 PM UTC

Hi Michael,  
  
Sorry for the inconvenience caused.  
  
#Regarding NullReference Exception when changing Appointment  
Due to the Main release, there is no weekly nuget release for this week. We will include the issue fix in our upcoming 2020 Volume 4 release which is expected to roll out on December 21,2020. We appreciate your patience until then.  
  
Regards,     
SaiGanesh Sakthivel  



MK Michael Kanios December 16, 2020 05:33 AM UTC

No worries.
I already removed implementation of INotifyPropertyChanged interface and I'm handling the notifications myself in code.
Thx SaiGanesh.


SS SaiGanesh Sakthivel Syncfusion Team December 17, 2020 12:07 PM UTC

Hi Michael,   
   
Thank you for the update.   
   
We are glad that our solution meets your requirement. Please let us know if you need further assistance. 
  
Regards,   
SaiGanesh Sakthivel 


Loader.
Up arrow icon