{ "id": "62281", "key": "TIMOB-1649", "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": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:46.000+0000", "created": "2011-04-15T02:58:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:46.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}
Treat no argument as send({});
. See Helpdesk\n38031
To work around simply use an empty dictionary.\nhttp.send({});
Simple fail case app.js:
\n\nTitanium.UI.setBackgroundColor('#000');\nvar http = Ti.Network.createHTTPClient();\nhttp.onerror = function(e) {\n Ti.API.error(e.error);\n};\nhttp.open('POST','http://www.appcelerator.com');\nhttp.send();\nTi.API.info('after send call');
\n
\nIn the console you will see an error notice of a\nNullPointerException
Hmm, I am running into a case where this workaround doesn't\navoid the NPE. (I'm the original reporter from Helpdesk 38031).\nI'll try to isolate it further, but it is a simple POST.
Confirmed that it's the same bug. If I build from source with\nthe guard commented out, it works fine.
Raising the priority.
(from [1c38abac9bea7598b1fa46de18a34e472343454c])\n[#1649 state:fixed-in-qa] Do not try to add null\nform entity to request \nhttps://github.com/appcelerator/titanium_mobile/commit/1c38abac9bea...
passed regression tested against android 1.6 sim
Matt are you running against more than one sim? If not once\nyou've verified it fixed, please move it into the resolved state\nwhen you comment.
\nThanks for tackling these, it's a big help.
Yes, I will run it against 1.6 then 2.1 and then move it to\nfixed state; unfortunately once a sim is up its a pain to restart\nit so I have to walk the list with 1.6 and then go back and do them\nagain against 2.1. In the past I have run multiple sims at a time,\nbut my new machine doesn't seem to have the power to handle it. If\nyou thing of a better way let me know.
passed regression tested against android 2.1 sim.