{ "id": "61271", "key": "TIMOB-639", "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": [ { "id": "11243", "name": "Release 1.6.0 M10", "archived": true, "released": true, "releaseDate": "2011-02-21" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:33:28.000+0000", "created": "2011-04-15T02:33:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "buttonbar", "crash", "defect", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T18:51:42.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": "{html}

//Titanium version 1.1.2

\n

I have a NullPointerExeption when I created a ButtonBar in\napp.js :

\n

var win = Titanium.UI.createWindow({

\n
\ntitle:'Tab 1',\nbackgroundColor:'#fff'\n
\n

});

\n

var buttonBar = Titanium.UI.createButtonBar({id:'buttonbar',\nlabels:['Left', 'Right'],backgroundColor:'#336699'});

\n

//button Bar is null

\n

buttonBar.addEventListener('click',function(e)
\n{

\n
\nvar a = Titanium.UI.createAlertDialog();\na.setTitle('Buttonbar Test');\na.setMessage('You click button index = ' + e.index);\na.show();\n
\n

});

\n

win.add(buttonBar);

\n

win.open();

{html}", "attachment": [], "flagged": false, "summary": "Crash with createButtonBar on Android Simulator", "creator": { "name": "kyo.alone", "key": "kyo.alone", "displayName": "kyo.alone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kyo.alone", "key": "kyo.alone", "displayName": "kyo.alone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123694", "author": { "name": "kyo.alone", "key": "kyo.alone", "displayName": "kyo.alone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I found it, I should create a view and add the buttonBar in this\nview.

{html}", "updateAuthor": { "name": "kyo.alone", "key": "kyo.alone", "displayName": "kyo.alone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:33:27.000+0000", "updated": "2011-04-15T02:33:27.000+0000" }, { "id": "123695", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Don for triage.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:33:27.000+0000", "updated": "2011-04-15T02:33:27.000+0000" }, { "id": "123696", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ButtonBar is not an Android control.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:33:28.000+0000", "updated": "2011-04-15T02:33:28.000+0000" }, { "id": "408388", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T18:51:42.000+0000", "updated": "2017-03-02T18:51:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }