Skip to content

fix: guard null promise in case of skipCodeExchange #595

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

Conversation

FallenDestiny
Copy link
Contributor

Fixes #594

Description

Add a guard before using promise in case it's null when skipCodeExchange is true

@Shervanator
Copy link
Contributor

image

we have been having this issue happen as well, #427 this was my previous fix, but looks like this one had been missed.

@Shervanator
Copy link
Contributor

@kadikraman any chance we can get this one in :)

@kadikraman kadikraman merged commit 82090d7 into FormidableLabs:main Jan 14, 2021
@kadikraman
Copy link
Contributor

Thank you so much for the PR! This is now released in v6.0.2 🚀

@Shervanator
Copy link
Contributor

out of interest @FallenDestiny do we understand why the promise can sometimes be null?

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.

java.lang.NullPointerException
3 participants