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 potential NPE in PaymentMethodsActivity #1154

Merged
merged 1 commit into from
Jul 9, 2019
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

If the user enables airplane mode, access the Payment Methods screen,
and rotates the screen, an NPE will be thrown because mMaskedCardAdapter
is null when referenced in onSaveInstanceState().

Motivation

Fixes #1152

Testing

Manually tested

If the user enables airplane mode, access the Payment Methods screen,
and rotates the screen, an NPE will be thrown because `mMaskedCardAdapter`
is null when referenced in `onSaveInstanceState()`.

Fixes #1152
@mshafrir-stripe mshafrir-stripe merged commit 4d209e8 into master Jul 9, 2019
@mshafrir-stripe mshafrir-stripe deleted the fix-npe branch July 9, 2019 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The library crashes when I clicked "Add new card..."
3 participants