{ "id": "77643", "key": "TIMOB-4629", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-09T16:54:40.000+0000", "created": "2011-07-08T16:01:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "emaildialog" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "11710", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "77986", "key": "TIMOB-4724", "fields": { "summary": "KitchenSink: Runtime error after selecting gallery image in Base UI>Views>Email Dialog", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-08-25T12:58:24.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": "h3. Problem\r\nEmail Dialog crashes android on CI builds of 1.8\r\n\r\nWorks fine on earlier versions.\r\n\r\nh3. Sample Code\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle:'here'\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.open();\r\n\r\nbtn.addEventListener('click', function(){\r\n var emailDialog = Titanium.UI.createEmailDialog();\r\n emailDialog.setSubject('Hello from Titanium!');\r\n emailDialog.setToRecipients(['foo@yahoo.com']);\r\n emailDialog.setCcRecipients(['bar@yahoo.com']);\r\n emailDialog.setBccRecipients(['blah@yahoo.com']);\r\n\r\n emailDialog.addEventListener('complete',function(e)\r\n {\r\n if (e.result == emailDialog.SENT)\r\n {\r\n if (Ti.Platform.osname != 'android') {\r\n // android doesn't give us useful result codes.\r\n // it anyway shows a toast.\r\n alert(\"message was sent\");\r\n }\r\n }\r\n else\r\n {\r\n alert(\"message was not sent. result = \" + e.result);\r\n }\r\n });\r\n emailDialog.open();\r\n});\r\n{code}\r\nh3. Log\r\n{code}\r\n\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): (kroll$1: app://app.js) [5836,30550] Exception calling kroll method open, invocation: null ]\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): java.lang.NullPointerException\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at ti.modules.titanium.ui.EmailDialogProxy.getAttachmentUris(EmailDialogProxy.java:251)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at ti.modules.titanium.ui.EmailDialogProxy.buildIntent(EmailDialogProxy.java:115)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at ti.modules.titanium.ui.EmailDialogProxy.open(EmailDialogProxy.java:139)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at ti.modules.titanium.ui.EmailDialogProxyBindingGen$2.invoke(EmailDialogProxyBindingGen.java:142)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at android.os.Handler.handleCallback(Handler.java:587)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at android.os.Handler.dispatchMessage(Handler.java:92)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at android.os.Looper.loop(Looper.java:123)\r\n07-08 15:56:37.334: ERROR/KrollMethod(509): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): (kroll$1: app://app.js) [13,30563] Error evaluating source, invocation: [callMethod UI.Button.UI.Button:event:click null], message: Wrapped java.lang.NullPointerException (file:///android_asset/Resources/app.js#33)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (file:///android_asset/Resources/app.js#33)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:85)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at script(file:///android_asset/Resources/app.js:33)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at android.os.Handler.handleCallback(Handler.java:587)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at android.os.Handler.dispatchMessage(Handler.java:92)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at android.os.Looper.loop(Looper.java:123)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): Caused by: java.lang.NullPointerException\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at ti.modules.titanium.ui.EmailDialogProxy.getAttachmentUris(EmailDialogProxy.java:251)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at ti.modules.titanium.ui.EmailDialogProxy.buildIntent(EmailDialogProxy.java:115)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at ti.modules.titanium.ui.EmailDialogProxy.open(EmailDialogProxy.java:139)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at ti.modules.titanium.ui.EmailDialogProxyBindingGen$2.invoke(EmailDialogProxyBindingGen.java:142)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\n07-08 15:56:37.354: ERROR/KrollCallback(509): ... 12 more\r\n07-08 15:56:37.354: ERROR/TiJSError(509): (kroll$1: app://app.js) [19,30582] ----- Titanium Javascript Runtime Error -----\r\n07-08 15:56:37.365: ERROR/TiJSError(509): (kroll$1: app://app.js) [7,30589] - In file:///android_asset/Resources/app.js:33,0\r\n07-08 15:56:37.385: ERROR/TiJSError(509): (kroll$1: app://app.js) [12,30601] - Message: Wrapped java.lang.NullPointerException (file:///android_asset/Resources/app.js#33)\r\n07-08 15:56:37.385: ERROR/TiJSError(509): (kroll$1: app://app.js) [4,30605] - Source: null\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Email Dialog crashes on 1.8.x", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "+ **Product**: Mobile \r\n+ **Titanium SDK**: Mobile CI 1.8 \r\n+ **Platform OS**: Android \r\n+ **Platform OS Version**: 2.1 APIs \r\n", "comment": { "comments": [ { "id": "159129", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Also exists on Android API 2.2 and API 2.3.1, Ti SDK mobilesdk-1.8.0.v20110624140238-osx. See TC-112", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-09T11:52:29.000+0000", "updated": "2011-07-09T11:52:29.000+0000" }, { "id": "160160", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Rick and Paul this should be fixed with TIMOB-4724 which will be in 1.7.2 and 1.8.0. Please verify that it is fixed. If so then close this ticket as duplicate.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-20T21:56:34.000+0000", "updated": "2011-07-20T21:56:34.000+0000" }, { "id": "160161", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "May be duplicate. Linking to make it easier to find.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-20T21:57:17.000+0000", "updated": "2011-07-20T21:57:17.000+0000" }, { "id": "162264", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested on 1.8.0 (08/08/11 16:29 367a39e...) and it is not crashing.\r\n\r\nClosing.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-08-09T16:54:30.000+0000", "updated": "2011-08-09T16:54:30.000+0000" }, { "id": "164047", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110819142548\niPhone 4.3.4\niPad2 4.3.2\nMotorola Xoom 3.2\nNexus One 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T12:58:24.000+0000", "updated": "2011-08-25T12:58:24.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }