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

Fix booleanValue() on a null object on Android #941

Closed

Conversation

federicorabbiosi
Copy link

In some cases the boolean variable skipCodeExchange may be null and cause an error.

Fixes #672

Description

I added a check before using skipCodeExchange. If the variable is null I will consider it false

Steps to verify

Unable to reproduce. The error occured when skipCodeExchange is strangely null returning in Activity into onActivityResult after authorize()

In some cases the boolean variable skipCodeExchange may be null and cause an error.
I added a check before using it. If the variable is null I will consider it false
@RubenPM-dev
Copy link
Contributor

Hey @federicorabbiosi, thanks for your PR. I have just created a new PR with a few more checks than this to fix this issue as I can't edit yours, hope it helps and it can get merged soon.

@federicorabbiosi federicorabbiosi deleted the fix/issue-672 branch February 16, 2024 16:43
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.

react-native-app-auth module getting crashed in Android
2 participants