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

App Crash when accessing MPIdentityApiRequest.identities #268

Closed
KristofferHermansen opened this issue Apr 8, 2024 · 2 comments
Closed

Comments

@KristofferHermansen
Copy link

Explanation

It seems that the update 8.18.0 changed something regarding to MPIdentityApiRequest.identities.

Right now the property MPIdentityApiRequest.email is defined as nullable, but if the identities property is accessed while the email is set to null, the app results in a crash with the following message: "Could not cast value of type 'NSNull' to 'NSString'."

Steps to reproduce

let identityRequest = MPIdentityApiRequest.withEmptyUser()
identityRequest.email = nil
print(identityRequest.identities)
@KristofferHermansen
Copy link
Author

Might be the same issue as described in #250

@KristofferHermansen
Copy link
Author

Fixed in #270

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