Open Therzok opened 4 years ago
A potential workaround is to use the delegate pattern instead of the event pattern, and declare the DidChangeToDirectory function with more encompassing signature: https://github.com/rolfbjarne/mactestapp/blob/2251988eeb75c6f7a8c0e9dfc1694f964bc90a57/mactestapp/ViewController.cs#L36
Apple feedback: https://github.com/xamarin/maccore/issues/2051 (FB7428536)
Steps to Reproduce
Expected Behavior
No crash.
Actual Behavior
The code crashes because it tries to marshal NSNull as NSUrl. Modifying the static registrar manually to check for the value being NSNull fixes the crash.
Environment
Example Project (If Possible)
Add this to the template
ViewController.ViewDidLoad
: