{ "id": "117131", "key": "TIMOB-14546", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-04-09T21:39:29.000+0000", "created": "2013-07-12T11:18:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "listview", "parity", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "36533", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "117130", "key": "TIMOB-14545", "fields": { "summary": "Android: Accessing empty ListView section crashes app", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T21:20:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Problem*\r\nSelf explanatory - the following code crashes on Android but works fine on iOS simulator. Similar to TIMOB-14545, looks like there are issues initializing the ListView arrays in Android.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar listView = Ti.UI.createListView({\r\n\ttop : '150dp'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttop : '2dp',\r\n\twidth : '300dp',\r\n\theight : '40dp',\r\n\ttitle : 'Android appendSection bug'\r\n});\r\nbtn.addEventListener('click', function() {\r\n\tlistView.removeAllChildren();\r\n\tvar fruitSection = Ti.UI.createListSection({\r\n\t\theaderTitle : 'Fruits'\r\n\t});\r\n\tlistView.appendSection(fruitSection);\r\n\talert('Section header title: ' + listView.sections[0].headerTitle);\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\n*Error message*\r\n{code}\r\nLocation:\r\n[20,55] app.js\r\nMessage:\r\nUncaught TypeError: Cannot read property '0' of undefined\r\nSource:\r\nalert('Section header title: ' + listView.sections[0].headerTitle);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ListView appendSection to empty ListView throws exception", "creator": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "SDK 3.1.1.GA, Nexus S 4.1.2", "comment": { "comments": [ { "id": "261698", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 2.3.6 with Ti SDK 3.2 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-12T23:20:27.000+0000", "updated": "2013-07-12T23:20:27.000+0000" }, { "id": "300420", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Any update? Was bitten by this again on 3.2.2.GA.....", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-04-09T21:04:36.000+0000", "updated": "2014-04-09T21:04:36.000+0000" }, { "id": "300435", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this on master. Closing as unable to reproduce.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-09T21:39:04.000+0000", "updated": "2014-04-09T21:39:04.000+0000" }, { "id": "300437", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mark, please try on latest master. This issue should be fixed.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-09T21:46:12.000+0000", "updated": "2014-04-09T21:46:12.000+0000" }, { "id": "300438", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Indeed on 3.3.0 it's OK, but it's buggy on 3.2.2.GA. Since 3.3.0 is a long ways off, why not backport the fix to 3.2.x, and why don't you guys track the fixes on JIRA? ", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-04-09T21:53:39.000+0000", "updated": "2014-04-09T21:53:39.000+0000" }, { "id": "300439", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mokesmokes] We do track the fixes on JIRA, but this appears to have been fixed as a result of some other commit. If we knew which one fixed it, we would backport it, but that could be a substantial effort to locate it.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-09T21:56:22.000+0000", "updated": "2014-04-09T21:56:22.000+0000" }, { "id": "416389", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\nPixel (7.1) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T21:20:44.000+0000", "updated": "2017-03-30T21:20:44.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }