Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2732] Email Dialog crash on Android Ti SDK 1.8.0 +

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2011-07-09T11:53:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterVinh Bui
AssigneeTony Guntharp
Created2011-06-28T15:51:18.000+0000
Updated2016-03-08T07:47:37.000+0000

Description

Mobile application crashes when calling EmailDialog.show(); I 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. Coding: var emailDialog = Ti.UI.createEmailDialog(); emailDialog.setSubject('Email test'); emailDialog.setMessageBody('Hello world'); emailDialog.open(); Error Log from Ti Developer. runtime error: Wrapped Java Lang Null Pointer Exception [TRACE] E/KrollMethod( 456): (kroll$5: app://views/track/workoutRoutine.js) [6409,50427] Exception calling kroll method open, invocation: null ] [TRACE] E/KrollMethod( 456): java.lang.NullPointerException [TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxy.getAttachmentUris(EmailDialogProxy.java:251) [TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxy.buildIntent(EmailDialogProxy.java:115) [TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxy.open(EmailDialogProxy.java:139) [TRACE] E/KrollMethod( 456): at ti.modules.titanium.ui.EmailDialogProxyBindingGen$2.invoke(EmailDialogProxyBindingGen.java:142) [TRACE] E/KrollMethod( 456): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) [TRACE] E/KrollMethod( 456): at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119) [TRACE] E/KrollMethod( 456): at com.helloWorld.helloWorld.js.views_track_workoutRoutine._c_anonymous_32(Unknown Source) [TRACE] E/KrollMethod( 456): at com.helloWorld.helloWorld.js.views_track_workoutRoutine.call(Unknown Source) [TRACE] E/KrollMethod( 456): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) [TRACE] E/KrollMethod( 456): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) [TRACE] E/KrollMethod( 456): at com.helloWorld.helloWorld.js.views_track_workoutRoutine.call(Unknown Source) [TRACE] E/KrollMethod( 456): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) [TRACE] E/KrollMethod( 456): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) [TRACE] E/KrollMethod( 456): at android.os.Handler.handleCallback(Handler.java:587) [TRACE] E/KrollMethod( 456): at android.os.Handler.dispatchMessage(Handler.java:92) [TRACE] E/KrollMethod( 456): at android.os.Looper.loop(Looper.java:123) [TRACE] E/KrollMethod( 456): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) [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

Comments

  1. Paul Dowsett 2011-07-09

    Duplicate. See TIMOB-4629

JSON Source