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

Make backingStore optional rather than force unwrapped #445

Conversation

alessdiimperio
Copy link

@alessdiimperio alessdiimperio commented Sep 27, 2023

New Pull Request Checklist

  • [ x] I am not disclosing a vulnerability.
  • [ x] I am creating this PR in reference to an issue.

Issue Description

While testing one perhaps doesn't want to initialize Parse or all other dependencies. however Installation.current is optional but it's backingStore is force unwrapped causing a crash when trying to get .current installation if Parse hasn't been initialized rather than just returning nil.

Closes: issue

Approach

removed ! added ? made it compile 🤷

TODOs before merging

  • [ /n] Add tests
  • [ /n] Add entry to changelog
  • [ /n] Add changes to documentation (guides, repository pages, in-code descriptions)

@parse-github-assistant
Copy link

parse-github-assistant bot commented Sep 27, 2023

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

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.

Request: Make backingStore optional rather than force unwrapped
1 participant