Skip to content

Add failure/safety checks for PFInstallation.+currentInstallation. #901

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

Merged
merged 2 commits into from
Apr 16, 2016

Conversation

nlutsenko
Copy link
Contributor

If reading installationId from disk failed - it will crash the app on setting the installationId.
If loading of currentInstallation failed, because disk failed or installationId wasn't loaded - we should not crash Swift runtime, but rather force everyone unwrap currentInstallation.

Closes #817.

@nlutsenko nlutsenko force-pushed the nlutsenko.installationId branch from 7a9f59a to e2411d7 Compare April 16, 2016 02:05
@nlutsenko nlutsenko merged commit f9c5770 into master Apr 16, 2016
@nlutsenko nlutsenko deleted the nlutsenko.installationId branch April 16, 2016 02:24
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.

3 participants