Open via-guy opened 8 months ago
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].
Leanplum-iOS-SDK
NSString
[NSNull length]
Why do you perform this cast? Can't we just leave the value as nil instead of NSNull?
nil
NSNull
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 anNSString
but is trying to call function[NSNull length]
.Why do you perform this cast? Can't we just leave the value as
nil
instead ofNSNull
?