Skip to content
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

[iOS] NullReferenceException for Span GridItemsLayout fix #20492

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Feb 10, 2024

Description of Change

Added a null check

Issues Fixed

Fixes #19803
Fixes #18828

Demo
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-02-10.at.14.36.10.mp4

@kubaflo kubaflo requested a review from a team as a code owner February 10, 2024 13:37
@ghost ghost added the community ✨ Community Contribution label Feb 10, 2024
@ghost
Copy link

ghost commented Feb 10, 2024

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 labels Feb 12, 2024
@rmarinho
Copy link
Member

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rmarinho
Copy link
Member

Hi @kubaflo can you explain how this fixes the issue ? Why is PropertyChanged firing before CollectionView be set? Maybe we need to fix why that event is firing ?

@kubaflo
Copy link
Contributor Author

kubaflo commented Feb 13, 2024

Hi @kubaflo can you explain how this fixes the issue ? Why is PropertyChanged firing before CollectionView be set? Maybe we need to fix why that event is firing ?

@rmarinho Hi, I'm not quite sure, but it is related to binding to the page, because when using a constant value for the span instead of using the binding the PropertyChanged doesn't fire

@rmarinho rmarinho merged commit 79faaf5 into dotnet:main Feb 23, 2024
47 checks passed
rmarinho pushed a commit that referenced this pull request Feb 27, 2024
* [iOS] NRE in GridViewLayout & xaml test (#18828)

* Added a UiTest (#19803)
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter community ✨ Community Contribution fixed-in-8.0.10 fixed-in-9.0.0-preview.2.10247 fixed-in-9.0.0-preview.2.10293 platform/iOS 🍎
Projects
None yet
4 participants