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
Select any option (different than if the first group)
Save the form.
Edit the saved form
Try to open the first group in the hierarchy view then navigate up in the hierarchy and try to open the second group
Other information
It's a regression that was introduced in Cache and reuse dynamic choice lists#619#626
Logs:
2021-09-02 11:29:46.411 24578-24578/org.odk.collect.android E/FormHierarchyActivity: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.javarosa.core.model.SelectChoice.getTextID()' on a null object reference
at org.javarosa.form.api.FormEntryPrompt.getSelectItemText(FormEntryPrompt.java:312)
at org.javarosa.form.api.FormEntryPrompt.getAnswerText(FormEntryPrompt.java:163)
at org.odk.collect.android.utilities.FormEntryPromptUtils.getAnswerText(FormEntryPromptUtils.java:119)
at org.odk.collect.android.activities.FormHierarchyActivity.refreshView(FormHierarchyActivity.java:553)
at org.odk.collect.android.activities.FormHierarchyActivity.refreshView(FormHierarchyActivity.java:480)
at org.odk.collect.android.activities.FormHierarchyActivity.onElementClick(FormHierarchyActivity.java:706)
at org.odk.collect.android.activities.FormHierarchyActivity$$ExternalSyntheticLambda3.onElementClick(Unknown Source:2)
at org.odk.collect.android.adapters.HierarchyListAdapter$ViewHolder.lambda$bind$0(HierarchyListAdapter.java:85)
at org.odk.collect.android.adapters.HierarchyListAdapter$ViewHolder$$ExternalSyntheticLambda0.onClick(Unknown Source:4)
at android.view.View.performClick(View.java:7448)
at android.view.View.performClickInternal(View.java:7425)
at android.view.View.access$3600(View.java:810)
The text was updated successfully, but these errors were encountered:
Software versions
JavaRosa v3.2.0
Problem description
The issue was originally reported on the forum:
https://forum.getodk.org/t/error-in-odk-collect-attempt-to-invoke-virtual-method-java-lang-string-org-javarosa-core-model-selectchoice-gettextid-on-a-null-object-reference/34916
Steps to reproduce the problem
dynamiChoices.xlsx
Other information
It's a regression that was introduced in
Cache and reuse dynamic choice lists
#619 #626Logs:
The text was updated successfully, but these errors were encountered: