-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pushing a Popup on startup leads to an NullReferenceException #118
Comments
I've had this issue after updating to MAUI 8.0.20 on iOS only. Android and Windows seems to work fine as of now. |
The is issue is reproducible on all three platforms for me. |
Do you know any temporary workaround? I tried the above one but didn't work. Still NullReferenceException is throwing |
In your own project, or is the problem reproducible in the sample project? |
Okay, so It had something to do with using ListView ItemSource binding inside Popup. Removing item source binding from XAML and assigning it in code behind resolves the issue for me. |
Issue:
Pushing a Popup shortly after starting the App, leads to a NullReferenceException, and the Popup does not get pushed.
On Android the App crashes sometimes in this situation , but only in release mode.
Expected Behavior:
The Popup should be opened after the everything necessary was initialized.
Environment:
Platform: Windows, Android, iOS
.NET Version: 8.0.0
Mopups Version: 1.3.1
Maui Version: 8.0.20
Steps to Reproduce:
Workaround:
Awaiting this method before calling PushAsync fixes the issue:
Probably not the cleanest way to prevent the issue, but maybe something similar could be integrated into Mopups.
The text was updated successfully, but these errors were encountered: