While editing saved as draft form: attempt to invoke interface method 'int java.util.list.size()' on a null object reference

1. What is the issue? Please be detailed.

While clicking on the saved form to edit the form showing this error.

2. What steps can we take to reproduce this issue?

3. What have you tried to fix the issue?
Checked the choices list if there is any blank row.

4. Upload any test forms or screenshots below.

Hi @ssraza
Welcome to the ODK forum. We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add a picture as your avatar because it helps build community!

What version of ODK Collect are you using?
Is it a problem with just that one form? If so could you share it here?

I am using ODK collect v2022.3.2

Yes only this form have problem.

Household_Profiling_Form250822.xlsx (97.2 KB)

Still waiting response from anyone. its very urgent.


Hi @ssraza
The problem seems to be in row 9 and 10. There in calculations you use:
Row 9: search('n_districts', 'matches', 'province_id', ${province_id})
Row 10: search('n_tehsils', 'matches', 'district_id', ${district_id})

Why did you place it there? The options for select questions you use are defined in the choices sheet. The search functions are used to load choices from external csv files.

Many thanks for your support. Issue is resolved.