We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a62fc5 commit 3a7fb07Copy full SHA for 3a7fb07
1 file changed
Sources/mParticle-Appboy/MPKitAppboy.m
@@ -781,7 +781,7 @@ - (nonnull MPKitExecStatus *)updateUser:(FilteredMParticleUser *)user request:(F
781
}
782
783
784
- if (userId) {
+ if (userId && ![userId isKindOfClass: [NSNull class]]) {
785
void (^changeUser)(void) = ^ {
786
[self->appboyInstance changeUser:userId];
787
};
@@ -849,7 +849,7 @@ - (nonnull MPKitExecStatus *)updateUser:(FilteredMParticleUser *)user request:(F
849
850
851
852
- if (userEmail) {
+ if (userEmail && ![userEmail isKindOfClass: [NSNull class]]) {
853
[appboyInstance.user setEmail:userEmail];
854
execStatus = [[MPKitExecStatus alloc] initWithSDKCode:@(MPKitInstanceAppboy) returnCode:MPKitReturnCodeSuccess];
855
0 commit comments