{ "id": "63346", "key": "TIMOB-2714", "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-08T19:53:15.000+0000", "created": "2011-04-15T03:27:38.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-08T19:53:15.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}

The description of the problem and a test can be found \r\nhere, but basically it's a Facebook login button that kills the\r\napp when it logs in or out.
\r\nThe button belongs to a window that was created from inside a\r\nfunction, like this:

\r\n

function makeWin() {

\r\n
\r\nvar win = Ti.UI.createWindow({ properties });\r\n// add elements and events to win\r\nreturn win;\r\n
\r\n

}

\r\n

AFAIK his is the only particularity of the FB button, and as in\r\nmy understanding there should be no reason for it to fail, because\r\nevent functions have access to the closure of makeWin()... So\r\npotentially there might be a JS bug behind this.

{html}", "attachment": [], "flagged": false, "summary": "Android: FB Connect Button inside function breaks with NPE ", "creator": { "name": "leoacevedo", "key": "leoacevedo", "displayName": "Leo Acevedo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "leoacevedo", "key": "leoacevedo", "displayName": "Leo Acevedo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129246", "author": { "name": "leoacevedo", "key": "leoacevedo", "displayName": "Leo Acevedo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I forgot to say that this happened to me on the emulator for\nLinux, using APIs 1.6 and TI Mobile SDK 1.5.1.

{html}", "updateAuthor": { "name": "leoacevedo", "key": "leoacevedo", "displayName": "Leo Acevedo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:27:38.000+0000", "updated": "2011-04-15T03:27:38.000+0000" }, { "id": "421558", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of input or progress in the past few years.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T19:53:15.000+0000", "updated": "2017-06-08T19:53:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }