{ "id": "76978", "key": "AC-2732", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-07-09T11:53:09.000+0000", "created": "2011-06-28T15:51:18.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:37.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Mobile application crashes when calling EmailDialog.show(); \r\n\r\nI verified that it WAS working on SDK 1.7.0 and 1.7.1. Error came when changing to SDK 1.8.0 +. Only crash on Android, work fine on iOS. \r\n\r\nCoding: \r\n\r\nvar emailDialog = Ti.UI.createEmailDialog();\r\nemailDialog.setSubject('Email test');\r\nemailDialog.setMessageBody('Hello world');\r\nemailDialog.open();\r\n\r\nError Log from Ti Developer. \r\n\r\nruntime error: Wrapped Java Lang Null Pointer Exception\r\n\r\n[TRACE] E/KrollMethod( 456): (kroll$5: app://views/track/workoutRoutine.js) [6409,50427] Exception calling kroll method open, invocation: null ]\r\n[TRACE] E/KrollMethod( 456): java.lang.NullPointerException\r\n[TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxy.getAttachmentUris(EmailDialogProxy.java:251)\r\n[TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxy.buildIntent(EmailDialogProxy.java:115)\r\n[TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxy.open(EmailDialogProxy.java:139)\r\n[TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxyBindingGen$2.invoke(EmailDialogProxyBindingGen.java:142)\r\n[TRACE] E/KrollMethod( 456): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\n[TRACE] E/KrollMethod( 456): at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)\r\n[TRACE] E/KrollMethod( 456): at com.helloWorld.helloWorld.js.views_track_workoutRoutine._c_anonymous_32(Unknown Source)\r\n[TRACE] E/KrollMethod( 456): at com.helloWorld.helloWorld.js.views_track_workoutRoutine.call(Unknown Source)\r\n[TRACE] E/KrollMethod( 456): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\n[TRACE] E/KrollMethod( 456): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\n[TRACE] E/KrollMethod( 456): at com.helloWorld.helloWorld.js.views_track_workoutRoutine.call(Unknown Source)\r\n[TRACE] E/KrollMethod( 456): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139)\r\n[TRACE] E/KrollMethod( 456): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164)\r\n[TRACE] E/KrollMethod( 456): at android.os.Handler.handleCallback(Handler.java:587)\r\n[TRACE] E/KrollMethod( 456): at android.os.Handler.dispatchMessage(Handler.java:92)\r\n[TRACE] E/KrollMethod( 456): at android.os.Looper.loop(Looper.java:123)\r\n[TRACE] E/KrollMethod( 456): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\n[TRACE] E/KrollCallback( 456): (kroll$5: app://views/track/workoutRoutine.js) [53,50480] Error evaluating source, invocation: [callMethod UI.Button.UI.Button:event:click null], message: Wrapped java.lang.NullPointerException\r\n", "attachment": [], "flagged": false, "summary": "Email Dialog crash on Android Ti SDK 1.8.0 +", "creator": { "name": "vinhbui", "key": "vinhbui", "displayName": "Vinh Bui", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vinhbui", "key": "vinhbui", "displayName": "Vinh Bui", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mobile application. Android OS. Tested on API 2.2 and API 2.3.1. Ti build - mobilesdk-1.8.0.v20110624140238-osx", "comment": { "comments": [ { "id": "159130", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Duplicate. See TIMOB-4629", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-09T11:53:09.000+0000", "updated": "2011-07-09T11:53:09.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }