Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1530] Android: deleting nonexistent row generates runtime error

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect, regression
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T02:55:16.000+0000
Updated2011-04-17T01:56:25.000+0000

Description

found on 1.4.1 f88b9e

1.kitchenSink>baseUI>Views>Table Views> Delete Row
2.delete until there are no more rows, delete again

results: runtime error

Comments

  1. Don Thorp 2011-04-15

    (from [78ca20f1fc77df35bda995a076e89daf446a39da]) [#1530 state:fixed-in-qa] This is actually doing the right thing in Android. Blain and I walked through it and he agreed that iPhone should be throwing an exception. I added an exception handler to the test so that it deals with the expected exception. The delete from top is also correct. The test is actually very broken because tableview.data is actually an array of TableViewSections's not rows. It's a hold over from pre 0.9. The length of that array is 1 therefore it always remove index 0. http://github.com/appcelerator/titanium_mobile/commit/78ca20f1fc77df35bda995a076e89daf446a39da"> http://github.com/appcelerator/titanium_mobile/commit/78ca20f1fc77d...

  2. Thomas Huelbert 2011-04-15

    confirmed, loggin new crash bug for using touch on the button.

JSON Source