Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

federicorabbiosi
Copy link

In some cases the boolean variable skipCodeExchange may be null and cause an error #672 .
As explained in the issue the value could be lost for example after a long period in background or a screen rotation.

Fixes #672

Description

I added a check before using it. 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
# for free to join this conversation on GitHub. Already have an account? # 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
1 participant