Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4724] KitchenSink: Runtime error after selecting gallery image in Base UI>Views>Email Dialog

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-07-20T21:55:25.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-29, Release 1.7.2, Release 1.8.0
ComponentsAndroid
Labelskitchensink
ReporterEric Merriman
AssigneeBill Dawson
Created2011-07-19T16:39:00.000+0000
Updated2014-06-19T12:46:10.000+0000

Description

Description: While testing KitchenSink, Base UI>Views>Email Dialog, I Started the test, the gallery opened to choose a photo attachment and I selected one. When I did this, I got a runtime error dialog. This does not occur with 1.7.1. This also occurs on the Galaxy Tab. Steps to Reproduce: 1) Launch KS, built with 1.7.2 2) Navigate to Base UI>Views>Email Dialog 3) Select a photo from the gallery Result: Runtime error Expected results: image selected and email prepared Notes: See attached image Does not occur with 1.7.1

Attachments

FileDateSize
device-2011-07-18-141344.png2011-07-19T16:39:00.000+000033612

Comments

  1. Eric Merriman 2011-07-19

    Logcat output: 07-18 14:13:26.180: ERROR/TiMedia(861): (main) [13489,375724] OnResult called: -1 07-18 14:13:26.223: ERROR/KrollMethod(861): (kroll$24: app://examples/email_dialog.js) [42,375766] Exception calling kroll method isSupported, invocation: null ] 07-18 14:13:26.223: ERROR/KrollMethod(861): java.lang.NullPointerException 07-18 14:13:26.223: ERROR/KrollMethod(861): at ti.modules.titanium.ui.EmailDialogProxy.getAttachmentUris(EmailDialogProxy.java:251) 07-18 14:13:26.223: ERROR/KrollMethod(861): at ti.modules.titanium.ui.EmailDialogProxy.buildIntent(EmailDialogProxy.java:115) 07-18 14:13:26.223: ERROR/KrollMethod(861): at ti.modules.titanium.ui.EmailDialogProxy.isSupported(EmailDialogProxy.java:71) 07-18 14:13:26.223: ERROR/KrollMethod(861): at ti.modules.titanium.ui.EmailDialogProxyBindingGen$1.invoke(EmailDialogProxyBindingGen.java:119) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) 07-18 14:13:26.223: ERROR/KrollMethod(861): at android.os.Handler.handleCallback(Handler.java:587) 07-18 14:13:26.223: ERROR/KrollMethod(861): at android.os.Handler.dispatchMessage(Handler.java:92) 07-18 14:13:26.223: ERROR/KrollMethod(861): at android.os.Looper.loop(Looper.java:130) 07-18 14:13:26.223: ERROR/KrollMethod(861): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) 07-18 14:13:26.243: ERROR/KrollCallback(861): (kroll$24: app://examples/email_dialog.js) [4,375770] Error evaluating source, invocation: [callMethod (anonymous) org.appcelerator.titanium.kroll.KrollCallback@407c8bb0], message: Wrapped java.lang.NullPointerException (app://examples/email_dialog.js#17) 07-18 14:13:26.243: ERROR/KrollCallback(861): org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (app://examples/email_dialog.js#17) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:85) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) 07-18 14:13:26.243: ERROR/KrollCallback(861): at script(app://examples/email_dialog.js:17) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) 07-18 14:13:26.243: ERROR/KrollCallback(861): at android.os.Handler.handleCallback(Handler.java:587) 07-18 14:13:26.243: ERROR/KrollCallback(861): at android.os.Handler.dispatchMessage(Handler.java:92) 07-18 14:13:26.243: ERROR/KrollCallback(861): at android.os.Looper.loop(Looper.java:130) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) 07-18 14:13:26.243: ERROR/KrollCallback(861): Caused by: java.lang.NullPointerException 07-18 14:13:26.243: ERROR/KrollCallback(861): at ti.modules.titanium.ui.EmailDialogProxy.getAttachmentUris(EmailDialogProxy.java:251) 07-18 14:13:26.243: ERROR/KrollCallback(861): at ti.modules.titanium.ui.EmailDialogProxy.buildIntent(EmailDialogProxy.java:115) 07-18 14:13:26.243: ERROR/KrollCallback(861): at ti.modules.titanium.ui.EmailDialogProxy.isSupported(EmailDialogProxy.java:71) 07-18 14:13:26.243: ERROR/KrollCallback(861): at ti.modules.titanium.ui.EmailDialogProxyBindingGen$1.invoke(EmailDialogProxyBindingGen.java:119) 07-18 14:13:26.243: ERROR/KrollCallback(861): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 07-18 14:13:26.243: ERROR/KrollCallback(861): ... 12 more 07-18 14:13:26.247: WARN/IInputConnectionWrapper(615): showStatusIcon on inactive InputConnection 07-18 14:13:26.247: ERROR/TiJSError(861): (kroll$24: app://examples/email_dialog.js) [20,375790] ----- Titanium Javascript Runtime Error ----- 07-18 14:13:26.247: ERROR/TiJSError(861): (kroll$24: app://examples/email_dialog.js) [1,375791] - In app://examples/email_dialog.js:17,0 07-18 14:13:26.247: ERROR/TiJSError(861): (kroll$24: app://examples/email_dialog.js) [0,375791] - Message: Wrapped java.lang.NullPointerException (app://examples/email_dialog.js#17) 07-18 14:13:26.247: ERROR/TiJSError(861): (kroll$24: app://examples/email_dialog.js) [1,375792] - Source: null
  2. Thomas Huelbert 2011-07-20

    Jul 20 2011 07:02 r97c36894 galaxy xoom (3.2) g2 (2.2.2) galaxy pad (2.3.4)
  3. Don Thorp 2011-07-20

    Need to add Sprint.
  4. Don Thorp 2011-07-20

    Added sprint and task type.

JSON Source