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

Crash due to NSNull being cast to NSString #250

Open
via-guy opened this issue Feb 19, 2024 · 0 comments
Open

Crash due to NSNull being cast to NSString #250

via-guy opened this issue Feb 19, 2024 · 0 comments

Comments

@via-guy
Copy link

via-guy commented Feb 19, 2024

We have a crash in Leanplum-iOS-SDK caused by https://github.com/mParticle/mparticle-apple-sdk/blob/main/mParticle-Apple-SDK/Identity/MPIdentityApiRequest.m#L30. We get to https://github.com/Leanplum/Leanplum-iOS-SDK/blob/master/LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m#L2004 and the app crashes because it's expecting an NSString but is trying to call function [NSNull length].

Why do you perform this cast? Can't we just leave the value as nil instead of NSNull?

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

No branches or pull requests

1 participant