Skip to content

Comments

Fix crash when Crashlytics is not initialized#1021

Merged
gregmarra merged 1 commit intomainfrom
fix-crashlytics-try-catch
Feb 11, 2026
Merged

Fix crash when Crashlytics is not initialized#1021
gregmarra merged 1 commit intomainfrom
fix-crashlytics-try-catch

Conversation

@gregmarra
Copy link
Contributor

Summary

  • Wraps Crashlytics.setUserId() in a try/catch in AuthRepository to prevent crashes when Crashlytics is disabled or not yet initialized (e.g. debug builds without Crashlytics collection enabled)

Test plan

  • Verify debug build launches without crashing on auth state change
  • Verify Crashlytics user ID is still set in release builds

🤖 Generated with Claude Code

Wrap Crashlytics.setUserId() in try/catch to prevent crashes in
environments where Crashlytics collection is disabled or not yet
initialized.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gregmarra gregmarra merged commit bc814b9 into main Feb 11, 2026
5 checks passed
@gregmarra gregmarra deleted the fix-crashlytics-try-catch branch February 11, 2026 16: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.

1 participant