-
Notifications
You must be signed in to change notification settings - Fork 59
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
Quest crashes when it loads photo capture widget #761
Comments
Some updates on this. When a given questionnaire item tries to load:
It will throw an NPE because the QuestionnaireViewModel on data capture library tries to validate it's |
So, in order to fix this:
|
@f-odhiambo For the null check which is on datacapture library, where should I make the changes? on Android FHIR SDK or the preview version that FHIRCore use? |
Is this a general issue w/the datacapture library? If so, you can do so in the google/android-fhir repo, we can cut a release from the branch and use that if needed before they merge it to main |
@FikriMilano What happens if we set a type to prevent the NPE? |
Okay |
It will throw this error |
I meant setting a valid type eg. |
It works, it shows the photo capture widget :D
I think this approach is a good choice, combining Should the type be |
@FikriMilano It's a workaround while we try and get this fixed on the Android FHIR SDK. Ideally, this should have been |
Yeah I did test it, works fine either We could use FYI i think the SDK also plans to update their custom questionnaire sample. |
Yes, I think On the FHIR SDK issue discussion, I think we might not be on the same page regarding how custom widget extensions should be authored. See if you can get clarity on this during the call/issue |
Alright, let's use |
Describe the bug
Quest app crashes when it tries to load a questionnaire from HAPI with photo capture widget in it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Quest app should not crash and successfully loads the questionnaire
Screenshots
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: