Stop casting causes NullReferenceException
Summary
Setting a null RendererItem in order to stop casting causes NullReferenceException.
Minimal project and steps to reproduce
- Use the sample project https://code.videolan.org/mfkl/libvlcsharp-samples/blob/master/Chromecast/Chromecast/MainPage.xaml.cs
- Stop casting setting the renderer to null as stated in comment here
What is the current bug behavior?
The app crashes due to NullReferenceException
What is the expected correct behavior?
The app should not crash
Relevant logs and/or screenshots
Environment
- OS: iOS
- Version 12
- Device: iPhone XS Max
- LibVLCSharp version 3.1.0