I get an exception when clicking on an existing appointment in the day view, but not when clicking on an empty date

Exception in: UIApplication.Main(args, null, "AppDelegate")

{System.NullReferenceException: Object reference not set to an instance of an object
  at Syncfusion.SfSchedule.iOS.AppointmentView.TapGestureUpdated (UIKit.UITapGestureRecognizer tapGesture, Syncfusion.SfSchedule.iOS.SFSchedule schedule) [0x0009d] in <1c00a7fa44734e5ebf7683dcc4aaf6b2>:0 
  at Syncfusion.SfSchedule.iOS.AppointmentView+<>c__DisplayClass9_0.<.ctor>b__0 () [0x00000] in <1c00a7fa44734e5ebf7683dcc4aaf6b2>:0 
  at UIKit.UIGestureRecognizer+ParameterlessDispatch.Activated () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIGestureRecognizer.cs:90 
--- End of stack trace from previous location where exception was thrown ---

  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 /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:86 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:65 
  at MurosaFamily.iOS.Application.Main (System.String[] args) [0x00002] in D:\Development\MurosaFamily\MurosaFamily\MurosaFamily.iOS\Main.cs:20 }

It works fine in Android

Setup:
VS ver. 16.8.6, Win10
Xamarin.forms ver. 5
Xcode ver. 12.4
Debugging on simulator, IOS 14.4
Sfschedule ver. 18.4.0.46

Thanks in advance


9 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team March 5, 2021 03:29 AM UTC

Hi Flemming, 
 
Thank you for contacting syncfusion support. 
 
#Regarding exception when clicking on an existing appointment in the day view, but not when clicking on an empty date 
We have checked the reported query from our end. We regret to inform you that we could not replicate the reported scenario from our side. We have prepared the sample as per given information. We have tested sample with IPhone Simulator iOS 14.4 version. We have attached the tested sample for your reference and you can download the same from the following location.   
    
 
Please check the sample and let us know if you still facing the same issue? If not, please modify our sample based on your scenario and revert us back with the following details,    
    
·         Share the issue replicated video. 
·         Share the syncfusion version and Xamarin form version used in sample. 
 
Regards,  
SaiGanesh Sakthivel 


Marked as answer

FJ Flemming Juul March 5, 2021 09:43 PM UTC

Thanks for the quick reply and taking the time to look at my issue.

I will study your example and find out where I made a mistake.

Regards!


SS SaiGanesh Sakthivel Syncfusion Team March 8, 2021 05:40 AM UTC

Hi Flemming, 
  
Thank you for the update. 
  
We will wait until your further response. 
  
Regards, 
SaiGanesh Sakthivel 



FJ Flemming Juul April 2, 2021 11:09 AM UTC

Hello again,

I have checked your enclosed example and it works just fine, but the example does not handle the cell clicked event which seems to be where my issue starts.

For testing purposes, I have changed my cellclicked event handler to the one below. If I click on an empty cell date, in the day view, the app goes directly to the settings page (or any other page I put in), but not if I click on a cell with an existing appointment. 

As mentioned earlier: this works just fine on Android. 

private void CellClicked(object sender, CellTappedEventArgs e)
{
      App.Current.MainPage = new Views.SettingsPage();
}

I am not trying to get coding support here, but I have no code between the cell clicked and the page show so I'm a bit stuck. 

Any hint would be highly appreciated!

Regards 
Flemming


SS SaiGanesh Sakthivel Syncfusion Team April 5, 2021 01:05 PM UTC

Hi Flemming,

Thank you for the update.
 
 
#Regarding Get an exception when clicking on an existing appointment in the day view 
Currently, we are checking the reported scenario and we will update the further details on or before the April 8 ,2021. We appreciate your patience until then.  
  
Regards,  
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team April 8, 2021 05:33 AM UTC

Hi Flemming,  
  
Thank you for your patience.  
  
Currently we are fixing the reported issue”Exception when clicking on an existing appointment in the day view” and it will be included in our upcoming weekly Nuget package, which is expected to roll out on April 13th, 2021. We appreciate your patience until then.  
  
Regards,     
SaiGanesh Sakthivel 



FJ Flemming Juul April 8, 2021 05:28 PM UTC

Hi SaiGanesh

Thanks for the heads-up.

Looking forward to the update.

Regards
Flemming


SS SaiGanesh Sakthivel Syncfusion Team April 9, 2021 09:23 AM UTC

Hi Flemming, 
 
Thank you for the update. 
 
We will let you know once the release rolls out. 

Regards,
 
SaiGanesh Sakthivel




SS SaiGanesh Sakthivel Syncfusion Team April 13, 2021 04:56 AM UTC

Hi Flemming,  
  
Thank you for the patience.  
 
#Regarding Get an exception when clicking on an existing appointment in the day view  
We have fixed the reported issue and included the issue fix in our latest Weekly NuGet release update version 19.1.0.56 which is available for download (nuget.org).  
  
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.  
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon