GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2013-04-08T19:42:18.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2013 Sprint 08 Core, 2013 Sprint 08 |
Components | Android |
Labels | triage |
Reporter | James Semple |
Assignee | Allen Yeung |
Created | 2013-03-27T15:55:55.000+0000 |
Updated | 2017-03-10T21:10:35.000+0000 |
Use Alloy to create a Picker of type Ti.UI.PICKER_TYPE_TIME on Android. When you press the + or - buttons the app crashes fatally with the stack dump given below.
I will create a test case momentarily.
This is from a PoC created by a customer. They are using DATE_PICKER items without a problem but the TIME_PICKER crashes with the following.. [ERROR][TiApplication( 771)] (main) [8687,36044] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.0.2,2013/02/15 19:02,5a77fe7 [ERROR][TiApplication( 771)] java.lang.NullPointerException [ERROR][TiApplication( 771)] at android.widget.TimePicker.updateInputState(TimePicker.java:580) [ERROR][TiApplication( 771)] at android.widget.TimePicker.access$000(TimePicker.java:56) [ERROR][TiApplication( 771)] at android.widget.TimePicker$3.onValueChange(TimePicker.java:178) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.notifyChange(NumberPicker.java:1750) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.setValueInternal(NumberPicker.java:1536) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.changeValueByOne(NumberPicker.java:1564) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.access$200(NumberPicker.java:88) [ERROR][TiApplication( 771)] at android.widget.NumberPicker$2.onClick(NumberPicker.java:606) [ERROR][TiApplication( 771)] at android.view.View.performClick(View.java:4084) [ERROR][TiApplication( 771)] at android.view.View$PerformClick.run(View.java:16966) [ERROR][TiApplication( 771)] at android.os.Handler.handleCallback(Handler.java:615) [ERROR][TiApplication( 771)] at android.os.Handler.dispatchMessage(Handler.java:92) [ERROR][TiApplication( 771)] at android.os.Looper.loop(Looper.java:137) [ERROR][TiApplication( 771)] at android.app.ActivityThread.main(ActivityThread.java:4745) [ERROR][TiApplication( 771)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][TiApplication( 771)] at java.lang.reflect.Method.invoke(Method.java:511) [ERROR][TiApplication( 771)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) [ERROR][TiApplication( 771)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR][TiApplication( 771)] at dalvik.system.NativeStart.main(Native Method) [ERROR][AndroidRuntime( 771)] FATAL EXCEPTION: main [ERROR][AndroidRuntime( 771)] java.lang.NullPointerException [ERROR][AndroidRuntime( 771)] at android.widget.TimePicker.updateInputState(TimePicker.java:580) [ERROR][AndroidRuntime( 771)] at android.widget.TimePicker.access$000(TimePicker.java:56) [ERROR][AndroidRuntime( 771)] at android.widget.TimePicker$3.onValueChange(TimePicker.java:178) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.notifyChange(NumberPicker.java:1750) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.setValueInternal(NumberPicker.java:1536) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.changeValueByOne(NumberPicker.java:1564) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.access$200(NumberPicker.java:88) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker$2.onClick(NumberPicker.java:606) [ERROR][AndroidRuntime( 771)] at android.view.View.performClick(View.java:4084) [ERROR][AndroidRuntime( 771)] at android.view.View$PerformClick.run(View.java:16966) [ERROR][AndroidRuntime( 771)] at android.os.Handler.handleCallback(Handler.java:615) [ERROR][AndroidRuntime( 771)] at android.os.Handler.dispatchMessage(Handler.java:92) [ERROR][AndroidRuntime( 771)] at android.os.Looper.loop(Looper.java:137) [ERROR][AndroidRuntime( 771)] at android.app.ActivityThread.main(ActivityThread.java:4745) [ERROR][AndroidRuntime( 771)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][AndroidRuntime( 771)] at java.lang.reflect.Method.invoke(Method.java:511) [ERROR][AndroidRuntime( 771)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) [ERROR][AndroidRuntime( 771)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR][AndroidRuntime( 771)] at dalvik.system.NativeStart.main(Native Method) [WARN][ActivityManager( 149)] Force finishing activity com.appc.avis2/.Avis2Activity
This seems like a TIMOB Android issue, isn't it? Was this created as an ALOY ticket simply because it happend to be an Alloy built app? Hard to tell with most of the detail missing. * TiSDK version * Alloy version, if they're using it * Android version. Emulator or device? * code to reproduce this issue
Source code provided by the customer
I can't unzip the source code.
Ok it seems it fails if the picker is inside a table...
This looks like a native android bug: https://code.google.com/p/android/issues/detail?id=24387 I run into this on an ICS device, but not a 2.3 device as mentioned.
Closing ticket as invalid.