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 issue caused by duplicated main adapters causing crash: #598

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

meiron03
Copy link
Member

@meiron03 meiron03 commented Feb 1, 2024

Issue: First adapter is created which creates all the fragments. Dining fragment spawns new thread for network request. Then, startHomeFragment() is called in MainActivity, which creates a new adapter and destroys the old one. Then, the dining network request finishes and tries to access a null binding causing crash.

Added Crashyltics error logging for when this happens but prevents crash on the User side.

Issue: First adapter is created which creates all the fragments. Dining fragment spawns new thread for network request. Then, startHomeFragment() is called in MainActivity, which creates a new adapter and destroys the old one. Then, the dining network request finishes and tries to access a null binding causing crash.

Added Crashyltics error logging for when this happens but prevents crash on the User side.
@meiron03 meiron03 merged commit 1d5befa into main Feb 2, 2024
6 checks passed
@meiron03 meiron03 deleted the binding-crash-fix branch February 2, 2024 01:10
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.

1 participant