-
Notifications
You must be signed in to change notification settings - Fork 781
Use fatalError instead of NPE #6205
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
Conversation
Signed-off-by: Johannes Marbach <[email protected]>
I'm not sure if this needs a changelog entry but please tell me if it does. |
maybe a controversial take, I would prefer to crash, giving the user feedback an unrecoverable error has occurred and the ability to submit logs the next time the app launches perhaps a topic for the next team sync! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks for fixing the unused import @bmarty! 🤦♂️ |
Unit Test Results 34 files - 112 34 suites - 112 32s ⏱️ - 2m 3s Results for commit df23fd1. ± Comparison against base commit 3cc1951. This pull request removes 158 tests.
|
CI is too long. Should be fine. |
Matrix SDKIntegration Tests Results:
|
Type of change
Content
As advised by @bmarty here this is switching from an NPE to
fatalError
to avoid crashing in production builds.Tested devices
Checklist