You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a CarouselView or a CollectionView it crashes because of this exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at AiForms.Settings.Handlers.SettingsViewHandler.CreatePlatformView()
at Microsoft.Maui.Handlers.ViewHandler`2[[AiForms.Settings.SettingsView, SettingsView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[AiForms.Settings.Platforms.iOS.AiTableView, SettingsView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView()
at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement()
The issue is happening because when calling the CreatePlatformView() the Parent is null (for this scenario it gets set later), this specific code is causing the crash:
_parentPage.Appearing += ParentPageAppearing
Steps to Reproduce
Create an app with a CarouselView or CollectionView and add the AISettingsView in the content
Description
When using a CarouselView or a CollectionView it crashes because of this exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at AiForms.Settings.Handlers.SettingsViewHandler.CreatePlatformView()
at Microsoft.Maui.Handlers.ViewHandler`2[[AiForms.Settings.SettingsView, SettingsView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[AiForms.Settings.Platforms.iOS.AiTableView, SettingsView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView()
at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement()
The issue is happening because when calling the CreatePlatformView() the Parent is null (for this scenario it gets set later), this specific code is causing the crash:
_parentPage.Appearing += ParentPageAppearing
Steps to Reproduce
Actual Behavior
The app is crashing
Platforms
Basic Information
Reproduction Link
https://drive.google.com/file/d/15qU2K2TQsK20s-t10FoPRyLFVwnLM-_r/view?usp=sharing
Workaround
If you manually set the Parent in the xaml, it won't crash.
For example:
The text was updated successfully, but these errors were encountered: