{ "id": "62666", "key": "TIMOB-2034", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:52.000+0000", "created": "2011-04-15T03:08:42.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:52.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}

Customer reported this from a few of its users. The customer is\nnot able to reproduce this, nor am I, so there is no failcase.\nHere's the trace:

\n
\njava.lang.NullPointerException\nat ti.modules.titanium.facebook.FBRequest.generatePostBody(FBRequest.java:211)\nat ti.modules.titanium.facebook.FBRequest.connect(FBRequest.java:341)\nat ti.modules.titanium.facebook.FBSession.performRequest(FBSession.java:256)\nat ti.modules.titanium.facebook.FBSession.send(FBSession.java:423)\nat ti.modules.titanium.facebook.FBRequest.callWithAnyData(FBRequest.java:431)\nat ti.modules.titanium.facebook.FBRequest.call(FBRequest.java:381)\nat ti.modules.titanium.facebook.FacebookModule.triggerLoginChange(FacebookModule.java:423)\nat ti.modules.titanium.facebook.FacebookModule.triggerLogIn(FacebookModule.java:306)\nat ti.modules.titanium.facebook.FacebookModule.triggerLogIn(FacebookModule.java:298)\nat ti.modules.titanium.facebook.FacebookModule$FBSessionDelegateImpl.sessionDidLogin(FacebookModule.java:431)\nat ti.modules.titanium.facebook.FBSession.resume(FBSession.java:374)\nat ti.modules.titanium.facebook.FBLoginDialog$FBRequestDelegateImpl.requestDidLoad(FBLoginDialog.java:132)\nat ti.modules.titanium.facebook.FBRequest.succeedWithResult(FBRequest.java:306)\nat ti.modules.titanium.facebook.FBRequest.handleResponseData(FBRequest.java:286)\nat ti.modules.titanium.facebook.FBRequest.connect(FBRequest.java:361)\nat ti.modules.titanium.facebook.FBSession.performRequest(FBSession.java:256)\nat ti.modules.titanium.facebook.FBSession.send(FBSession.java:423)\nat ti.modules.titanium.facebook.FBRequest.post(FBRequest.java:443)\nat ti.modules.titanium.facebook.FBLoginDialog.connectToGetSession(FBLoginDialog.java:51)\nat ti.modules.titanium.facebook.FBLoginDialog.dialogDidSucceed(FBLoginDialog.java:99)\nat ti.modules.titanium.facebook.FBDialog$WebViewClientImpl.shouldOverrideUrlLoading(FBDialog.java:321)\nat android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:216)\nat android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:323)\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Facebook NPE in FBRequest.generatePostBody if parameter value is null", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "127318", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [d36f73d4889b205112c0d0f8ba8ab5cc53d8172e])\n[#2034 state:fixed-in-qa] Don't call\nvalue.getBytes if value is null. This will definitely void the NPE\nfrom this ticket, but as we don't have a reproducible failcase we\ncan't really see a before/after \nhttp://github.com/appcelerator/titanium_mobile/commit/d36f73d4889b2...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:42.000+0000", "updated": "2011-04-15T03:08:42.000+0000" }, { "id": "127319", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [b0304ad9975295c092b957b0730a041855816c4f])\n[#2034 state:fixed-in-qa] Don't call\nvalue.getBytes if value is null. This will definitely void the NPE\nfrom this ticket, but as we don't have a reproducible failcase we\ncan't really see a before/after \nhttp://github.com/appcelerator/titanium_mobile/commit/b0304ad997529...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:43.000+0000", "updated": "2011-04-15T03:08:43.000+0000" }, { "id": "127320", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

as per the ticket, no fail case, closing.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:43.000+0000", "updated": "2011-04-15T03:08:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }