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 · Fixed by #1310
Open

Crash when tapping the Profile-button too quickly #1257

zeitschlag opened this issue Mar 12, 2024 · 0 comments · Fixed by #1310

Comments

@zeitschlag
Copy link
Contributor

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)
  • Use existing account stored on disk
@zeitschlag zeitschlag linked a pull request Jun 10, 2024 that will close this issue
@renchap renchap reopened this Jul 10, 2024
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 a pull request may close this issue.

2 participants