You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2025. It is now read-only.
When loading data into the Profile ViewModel if the database has not been correctly stored within the local database then there is a chance that a call is made to the local database that results in null data being returned.
Instead of just leaving this to possible crash the program, when loading data we should check to see if the call has returned null. As there is a chance this null operation call is just because the data is yet to be written to the data we should wait and see whether the other async operations complete and then potentially return the operation.
If even after retrying the operation the data is still not there show an error message and prompt the user to log out of the application so we can clear the database and do a complete resync from the remote database.
When loading data into the Profile ViewModel if the database has not been correctly stored within the local database then there is a chance that a call is made to the local database that results in null data being returned.
Instead of just leaving this to possible crash the program, when loading data we should check to see if the call has returned null. As there is a chance this null operation call is just because the data is yet to be written to the data we should wait and see whether the other async operations complete and then potentially return the operation.
If even after retrying the operation the data is still not there show an error message and prompt the user to log out of the application so we can clear the database and do a complete resync from the remote database.