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

Convert PayPalWebCheckoutClient from lateinit to nullable #255

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

tdchow
Copy link
Contributor

@tdchow tdchow commented Apr 29, 2024

Summary of changes

  • Convert PayPalWebCheckoutClient from a lateinit var to a nullable var in the demo app

There was a crash in the demo app when PayPalWebCheckoutClient was not getting set either due to a network error or if the PayPal activity was cleared without setting the client. This crash was introduced when the removeObservers() function was added to the PayPalClient.

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

@tdchow tdchow requested a review from a team as a code owner April 29, 2024 14:59
@tdchow tdchow merged commit d858b0a into main Apr 29, 2024
7 checks passed
@tdchow tdchow deleted the fix-demo-app-crash branch April 29, 2024 15:04
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.

None yet

3 participants