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: Re-add nullability check for sharedApplication #99

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Mar 10, 2025

Accidentally removed this check in #95 (it's confusing, because sharedApplication is declared as non-NULL in the header, but that's because UIKit assumes you call UIApplicationMain as the first thing in fn main, it is actually null before UIApplicationMain has been called).

This is not a soundness issue, objc2 would have panicked internally when trying to create Retained<NSObject> from sharedApplication. But the error message is clearer this way, and we avoid a panic.

@amodm amodm merged commit 0f4d885 into amodm:main Mar 10, 2025
10 checks passed
@amodm
Copy link
Owner

amodm commented Mar 10, 2025

Thanks for pointing this out, and for the fix.

@madsmtm madsmtm deleted the ios-check-app branch March 10, 2025 12:51
@amodm
Copy link
Owner

amodm commented Mar 10, 2025

This is now out as v1.0.4

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.

None yet

2 participants