[TIMOB-4724] KitchenSink: Runtime error after selecting gallery image in Base UI>Views>Email Dialog
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-07-20T21:55:25.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-29, Release 1.7.2, Release 1.8.0 |
Components | Android |
Labels | kitchensink |
Reporter | Eric Merriman |
Assignee | Bill Dawson |
Created | 2011-07-19T16:39:00.000+0000 |
Updated | 2014-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
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
Jul 20 2011 07:02 r97c36894 galaxy xoom (3.2) g2 (2.2.2) galaxy pad (2.3.4)
Need to add Sprint.
Added sprint and task type.