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

Crash when tapping the Profile-button too quickly #1257

Open
zeitschlag opened this issue Mar 12, 2024 · 0 comments
Open

Crash when tapping the Profile-button too quickly #1257

zeitschlag opened this issue Mar 12, 2024 · 0 comments

Comments

@zeitschlag
Copy link
Member

zeitschlag commented Mar 12, 2024

Steps to reproduce

  1. Open app from cold start but with a logged in user (don't have an internet connection)
  2. Tap on profile-tab immediately
  3. Crash.

Notes

  • var viewModel: ProfileViewModel!
  • viewModel requires an authContext and so it only exists when there's an authContext

Possible Solutions

  • Don't use Forced Unwrapping (make it either really optional or not at all)
  • Block tapping on profile-tabs as long as the viewModel doesn't exist (could be weird)
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

No branches or pull requests

1 participant