{ "id": "63997", "key": "TIMOB-3365", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-08T22:43:31.000+0000", "created": "2011-04-15T03:43:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-08T22:43:31.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

The below code snippet dies a horrible death:

\r\n
\r\n    var rows = [];\r\n    var picker = Ti.UI.createPicker();\r\n    picker.add(rows);\r\n
\r\n

I think it should be possible to set an empty array as the rows.\r\nI realize it does not make too much sense but one could e.g add\r\nrows later to the picker. It's unexpected that the application\r\ncrashes, in my opinion.

{html}", "attachment": [], "flagged": false, "summary": "iOS: Cannot set an empty array for the picker rows", "creator": { "name": "balinterdi", "key": "balinterdi", "displayName": "Balint Erdi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "balinterdi", "key": "balinterdi", "displayName": "Balint Erdi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "421568", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as there has been no input for the last 6 years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T22:43:31.000+0000", "updated": "2017-06-08T22:43:31.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }