Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5430] Moving rows to an empty Section and then back in a Tableview causes crash

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2012-02-29T15:31:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSandeep Bhimavarapu
AssigneeNeeraj Gupta
Created2011-10-04T15:42:30.000+0000
Updated2017-03-21T23:12:44.000+0000

Description

Moving a row under one section to another (which is empty but has a headerView) and then back to the original section causes the app to crash. Sample code: {noformat} var win = Ti.UI.createWindow({backgroundColor: 'white'}); var section1 = Ti.UI.createTableViewSection({ headerView:Ti.UI.createView({height: '50', backgroundColor: 'black'}) }); var section2 = Ti.UI.createTableViewSection({headerView:Ti.UI.createView({height: '50', backgroundColor: 'green'})}); for (var i=0; i < 5; i++) { section2.add(Ti.UI.createTableViewRow({ title:'Row '+i })); } var tv = Ti.UI.createTableView({ data:[section1,section2], moving: 'true' }); win.add(tv); win.open(); {noformat}

Attachments

FileDateSize
console.rtf2011-10-06T11:55:16.000+00005637
CrashLog.crash2011-10-06T11:55:16.000+000040154

Comments

  1. Reggie Seagraves 2011-10-06

    Please attach a symbolocated crash log.
  2. Sandeep Bhimavarapu 2011-10-06

    Reggie, I have added them
  3. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments and links.

JSON Source