wsharba / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 1 forks source link

Manually deleting group instances can cause crashes #1083

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put a calculate field that calls position(..) into a repeat group.
2. Create three instances of the repeat group in Collect.
3. Long-click and delete instance 1.

What is the expected output? What do you see instead?

You expect things to work fine, but you get a null pointer exception instead.

Please use labels and text to provide additional information.

The problem has to do with cached (but newly invalid) TreeElements. The 
proposed fix is here:

https://bitbucket.org/m.sundt/javarosa/commits/780d139a91b3f14af0360a7481aa7268b
259a7c1

This has been tested briefly in SurveyCTO Collect. We'll test it more and then 
plan to release as part of 1.30.

Original issue reported on code.google.com by chrislro...@gmail.com on 6 Nov 2014 at 9:47