-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Make MetadataWriter more robust #782
base: master
Are you sure you want to change the base?
Conversation
On further consideration it is not necessary to explicitly null check in the |
This reverts commit 7771bd2.
The codebase contains a lot of places where the app just terminates due to an assertion failure. This does not seem necessary for production code and these have been replaced with critical messages or throwing an error and the subsequent code either omitted or continued as seems appropriate. If reviewers feel an assertion failure would cause user data corruption on continued use then it should be replaced with a call to AppWindow.panic which at least logs a message before terminating.
There were a few places where a null could theoretically be dereferenced.
It is difficult to know whether assertion failure or null dereferencing could occur in practice as the code is extremely convoluted.