Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Collection of data within Profile ViewModel possible cause null calls #25

@DilanGoodwin

Description

@DilanGoodwin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions