-
Notifications
You must be signed in to change notification settings - Fork 299
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
PatientListViewModel Null Pointer Exception Line 77 #788
Labels
type:bug
Something isn't working
Comments
Thanks @trevorgowing , the bug has been assigned to you. |
@trevorgowing Have you managed to take a look at this yet, or can I jump on it? |
@bausmeier No, I have not tackled it yet. It is on my list but if it is blocking you, are you welcome to tackle it and then I can review and test it for you. |
Okay I'll take it over then. I've got a fix locally, just need to commit and open a PR. |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
PatientListViewModel Null Pointer Exception Line 77
Component
Reference App
To Reproduce
Start the reference app
Expected behavior
The app not to crash
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
I think this is caused by a race condition between the two queries that are executed on view model initialisation.
On line 77 the result of the Count Patients Query is being used to limit the result of the Search Patients Query.
I am guessing the desired behaviour here is to limit the number of Patients displayed and then page through the remaining Patients, rather than using the result of the count query to limit the search results.
Would you like to work on the issue?
I can work on this issue if desired.
The text was updated successfully, but these errors were encountered: