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

Fixed crash when estimatedListSize is used in an empty list #546

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

naqvitalha
Copy link
Collaborator

@naqvitalha naqvitalha commented Aug 3, 2022

Description

Fixes #543

ListEmptyComponent breaks if used with estimatedListSize. The issue was a missing null check inside RLV (since it doesn't expect empty data most of the time). This PR addresses the issue.

Reviewers’ hat-rack 🎩

Without changes in this PR, any list trying to render ListEmptyComponent will break if used with estimatedListSize

Checklist

@naqvitalha naqvitalha enabled auto-merge (squash) August 3, 2022 05:40
@naqvitalha naqvitalha requested a review from fortmarek August 3, 2022 05:40
Copy link
Contributor

@fortmarek fortmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@naqvitalha naqvitalha merged commit 69fe9bb into main Aug 3, 2022
@naqvitalha naqvitalha deleted the npe-fix branch August 3, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RenderError (null is not an object) when using estimatedListSize and no data
2 participants