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

fix: cannot read property size of undefined (#6626) #6907

Closed

Conversation

MichelGutner
Copy link

What, How & Why?

I fixed the TypeError: Cannot read property 'size' of undefined, which occurred due to attempting to access the size property of an undefined object. I added a check to ensure the object exists before accessing its properties to prevent this error.

This closes #6626

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 📝 Update COMPATIBILITY.md
  • 🚦 Tests
  • 📦 Updated internal package version in consuming package.jsons (if updating internal packages)
  • 📱 Check the React Native/other sample apps work if necessary
  • 💥 Breaking label has been applied or is not necessary
  • 🔔 Mention @realm/devdocs if documentation changes are needed

Copy link

cla-bot bot commented Oct 22, 2024

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Michel Gutner.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Oct 22, 2024

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Michel Gutner.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Oct 22, 2024

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Michel Gutner.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@kraenhansen
Copy link
Member

Thanks for your interest in solving this. It is however an invariant of the Results to have an internal value, so instead of handling the possibility of this internal going missing, the proper solution would be to figure out why this internal doesn't have a value in the first place and fix that.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read property 'size' of undefined
2 participants