Skip to content
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

Validator crash #616

Closed
jingtang10 opened this issue Jul 1, 2021 · 0 comments · Fixed by #618
Closed

Validator crash #616

jingtang10 opened this issue Jul 1, 2021 · 0 comments · Fixed by #618
Assignees
Labels
type:bug Something isn't working

Comments

@jingtang10
Copy link
Collaborator

jingtang10 commented Jul 1, 2021

Describe the bug
2021-07-01 17:28:00.519 5632-5632/com.example.sdctest E/MessageQueue-JNI: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at com.google.android.fhir.datacapture.validation.PrimitiveTypeAnswerMaxLengthValidator.validate(PrimitiveTypeAnswerMaxLengthValidator.kt:38)
at com.google.android.fhir.datacapture.validation.QuestionnaireResponseItemValidator.validate(QuestionnaireResponseItemValidator.kt:43)
at com.google.android.fhir.datacapture.views.QuestionnaireItemEditTextViewHolderDelegate$init$2.onFocusChange(QuestionnaireItemEditTextViewHolderFactory.kt:59)
at android.view.View.onFocusChanged(View.java:7265)
at android.widget.TextView.onFocusChanged(TextView.java:10005)
at android.view.View.clearFocusInternal(View.java:7101)
at android.view.View.unFocus(View.java:7134)
at android.view.ViewGroup.unFocus(ViewGroup.java:1155)
at android.view.ViewGroup.unFocus(ViewGroup.java:1155)
at android.view.ViewGroup.unFocus(ViewGroup.java:1155)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:813)
at androidx.recyclerview.widget.RecyclerView.requestChildFocus(RecyclerView.java:2896)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:819)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:819)
at android.view.ViewGroup.requestChildFocus(ViewGroup.java:819)
at android.view.View.handleFocusGainInternal(View.java:6926)
at android.view.View.requestFocusNoSearch(View.java:11546)
at android.view.View.requestFocus(View.java:11520)
at android.view.View.requestFocus(View.java:11487)
at android.view.View.requestFocus(View.java:11429)
at com.google.android.material.textfield.DropdownMenuEndIconDelegate.showHideDropdown(DropdownMenuEndIconDelegate.java:288)
at com.google.android.material.textfield.DropdownMenuEndIconDelegate.access$500(DropdownMenuEndIconDelegate.java:67)
at com.google.android.material.textfield.DropdownMenuEndIconDelegate$7.onTouch(DropdownMenuEndIconDelegate.java:402)
at android.view.View.dispatchTouchEvent(View.java:12509)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:440)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1830)
at android.app.Activity.dispatchTouchEvent(Activity.java:3400)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.

Component
SDC library

To Reproduce
Steps to reproduce the behavior:

  1. Open any questionnaire, go to a text input box and move away

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
NA

Smartphone (please complete the following information):

  • Device: Pixel 2 emulator

Additional context
NA

Would you like to work on the issue?
Yes

@jingtang10 jingtang10 added the type:bug Something isn't working label Jul 1, 2021
@jingtang10 jingtang10 self-assigned this Jul 1, 2021
@jingtang10 jingtang10 added this to To do in Data capture library via automation Jul 1, 2021
Data capture library automation moved this from To do to Done Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants