InvalidOperationException: AutoCompleteViewHandler.Android -> DisconnectHandler #590
Labels
bug
Something isn't working
control-autocompleteview
platform-android
Something is related to Android
Milestone
In AutoCompleteViewHandler.Android the DisconnectHandler-override causes an exception when get_PlatFormView is called:
InvalidOperationException - "PlatformView cannot be null here"
This occurs sometimes when I start my app and crashes the whole thing.
The reason seems to be that when the base, Microsoft.Maui.Handlers.ElementHandler, triggers DisconnectHandler it sets the PlatformView intentionally to null beforehand because "PlatformView access should be isolated to the instance passed into DisconnectHandler".
All it takes to fix this seems to be using the parameter "platformView" in AutoCompleteViewHandler.Android
Maybe I am missing something as I am not that experienced with this stuff.
Here is the the exception:
The text was updated successfully, but these errors were encountered: