java.lang.NullPointerException

Appcelerator JIRA | Paul Dowsett | 5 years ago
  1. 0

    h2. Problem The [Titanium.UI.Picker.columns|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker.columns-property.html] property causes an exception. h2. Test case {code:lang=javascript|title=app.js} Ti.UI.backgroundColor = 'white'; var win = Ti.UI.createWindow({ exitOnClose: true, layout: 'vertical' }); var fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ]; var color = [ 'red', 'green', 'blue', 'orange' ]; var column1 = Ti.UI.createPickerColumn(); for(var i=0, ilen=fruit.length; i<ilen; i++){ var row = Ti.UI.createPickerRow({ title: fruit[i] }); column1.addRow(row); } var column2 = Ti.UI.createPickerColumn(); for(var i=0, ilen=color.length; i<ilen; i++){ var row = Ti.UI.createPickerRow({ title: color[i] }); column2.addRow(row); } var picker = Ti.UI.createPicker({ top:50, useSpinner: true, columns: [column1, column2], // disable this to resolve issue visibleItems: 3, selectionIndicator: false }); // picker.add([column1,column2]); // enable this to resolve issue win.add(picker); win.open(); // must be after picker has been displayed picker.setSelectedRow(0, 2, false); picker.setSelectedRow(1, 3, false); {code} h2. Logs {code:lang=none|title=console} 605 AndroidRuntime D >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 605 AndroidRuntime D CheckJNI is ON 605 AndroidRuntime D --- registering native functions --- 60 ActivityManager I Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x 10000000 cmp=com.appcelerator.testing10/.Testing10Activity } 605 AndroidRuntime D Shutting down VM 60 ActivityManager I Start proc com.appcelerator.testing10 for activity com.appcelerator.testing10/.Testing10Activity: pid=61 2 uid=10040 gids={1015, 3003} 605 AndroidRuntime I NOTE: attach of thread 'Binder Thread #3' failed 612 TiApplication I (main) [0,0] checkpoint, app created. 612 TiApplication I (main) [787,787] Titanium 1.8.0.1 (2011/12/22 13:09 fbdc96f) 612 TiFastDev D (main) [189,976] Enabling Fastdev on port 53141 612 TiFastDev D (main) [21,997] sent tokens successfully 612 TiFastDev D (main) [1,998] Fastdev session handshake succesful. 612 TiApplication I (main) [6,1004] Titanium Javascript runtime: v8 612 TiApplication W (main) [166,1170] activity stack is emtpy, unable to get current activity 612 TiRootActivity I (main) [0,0] checkpoint, on root activity create, savedInstanceState: null 612 TiApplication W (main) [281,281] activity stack is emtpy, unable to get current activity 612 TiApplication W (main) [1,282] activity stack is emtpy, unable to get current activity 612 TiApplication W (main) [0,282] activity stack is emtpy, unable to get current activity 612 TiApplication E (KrollRuntimeThread) [1065,1347] APP PROXY: ti.modules.titanium.app.AppModule@44fcbc68 612 TiAssetHelper D Fetching "app.js" with Fastdev... 612 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy 612 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy 612 AndroidRuntime D Shutting down VM 612 TiApplication E (main) [946,2293] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to sta rt activity ComponentInfo{com.appcelerator.testing10/com.appcelerator.testing10.Testing10Activity}: java .lang.NullPointerException; Titanium 1.8.0.1,2011/12/22 13:09,fbdc96f 612 TiApplication E java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.testing10/com.appcel erator.testing10.Testing10Activity}: java.lang.NullPointerException 612 TiApplication E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 612 TiApplication E at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 612 TiApplication E at android.app.ActivityThread.access$2300(ActivityThread.java:125) 612 TiApplication E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 612 TiApplication E at android.os.Handler.dispatchMessage(Handler.java:99) 612 TiApplication E at android.os.Looper.loop(Looper.java:123) 612 TiApplication E at android.app.ActivityThread.main(ActivityThread.java:4627) 612 TiApplication E at java.lang.reflect.Method.invokeNative(Native Method) 612 TiApplication E at java.lang.reflect.Method.invoke(Method.java:521) 612 TiApplication E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 612 TiApplication E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 612 TiApplication E at dalvik.system.NativeStart.main(Native Method) 612 TiApplication E Caused by: java.lang.NullPointerException 612 TiApplication E at java.util.Arrays$ArrayList.<init>(Arrays.java:49) 612 TiApplication E at java.util.Arrays.asList(Arrays.java:171) 612 TiApplication E at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) 612 TiApplication E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) 612 TiApplication E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) 612 TiApplication E at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:440) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264) 612 TiApplication E at android.os.Handler.dispatchMessage(Handler.java:95) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143) 612 TiApplication E at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417) 612 TiApplication E at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:337) 612 TiApplication E at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117) 612 TiApplication E at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46) 612 TiApplication E at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 612 TiApplication E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 612 TiApplication E ... 11 more 612 AndroidRuntime E FATAL EXCEPTION: main 612 AndroidRuntime E java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.testing10/com.appcel erator.testing10.Testing10Activity}: java.lang.NullPointerException 612 AndroidRuntime E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 612 AndroidRuntime E at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 612 AndroidRuntime E at android.app.ActivityThread.access$2300(ActivityThread.java:125) 612 AndroidRuntime E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 612 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:99) 612 AndroidRuntime E at android.os.Looper.loop(Looper.java:123) 612 AndroidRuntime E at android.app.ActivityThread.main(ActivityThread.java:4627) 612 AndroidRuntime E at java.lang.reflect.Method.invokeNative(Native Method) 612 AndroidRuntime E at java.lang.reflect.Method.invoke(Method.java:521) 612 AndroidRuntime E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 612 AndroidRuntime E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 612 AndroidRuntime E at dalvik.system.NativeStart.main(Native Method) 612 AndroidRuntime E Caused by: java.lang.NullPointerException 612 AndroidRuntime E at java.util.Arrays$ArrayList.<init>(Arrays.java:49) 612 AndroidRuntime E at java.util.Arrays.asList(Arrays.java:171) 612 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) 612 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) 612 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) 612 AndroidRuntime E at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:440) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264) 612 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:95) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143) 612 AndroidRuntime E at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417) 612 AndroidRuntime E at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:337) 612 AndroidRuntime E at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117) 612 AndroidRuntime E at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46) 612 AndroidRuntime E at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 612 AndroidRuntime E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 612 AndroidRuntime E ... 11 more 60 ActivityManager W Force finishing activity com.appcelerator.testing10/.Testing10Activity 60 ActivityManager W Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity 60 ActivityManager W Activity pause timeout for HistoryRecord{44f478e0 com.appcelerator.testing10/.Testing10Activity} 329 TiBaseActivity E (main) [150281,528726] Layout cleanup. 60 ActivityManager W Activity destroy timeout for HistoryRecord{44f478e0 com.appcelerator.testing10/.Testing10Activity} 612 Process I Sending signal. PID: 612 SIG: 9 60 ActivityManager I Process com.appcelerator.testing10 (pid 612) has died. {code} h2. Workaround Use the {{add()}} method rather than the {{columns}} property (see test case for example)

    Appcelerator JIRA | 5 years ago | Paul Dowsett
    java.lang.NullPointerException
  2. 0

    h2. Problem The [Titanium.UI.Picker.columns|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker.columns-property.html] property causes an exception. h2. Test case {code:lang=javascript|title=app.js} Ti.UI.backgroundColor = 'white'; var win = Ti.UI.createWindow({ exitOnClose: true, layout: 'vertical' }); var fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ]; var color = [ 'red', 'green', 'blue', 'orange' ]; var column1 = Ti.UI.createPickerColumn(); for(var i=0, ilen=fruit.length; i<ilen; i++){ var row = Ti.UI.createPickerRow({ title: fruit[i] }); column1.addRow(row); } var column2 = Ti.UI.createPickerColumn(); for(var i=0, ilen=color.length; i<ilen; i++){ var row = Ti.UI.createPickerRow({ title: color[i] }); column2.addRow(row); } var picker = Ti.UI.createPicker({ top:50, useSpinner: true, columns: [column1, column2], // disable this to resolve issue visibleItems: 3, selectionIndicator: false }); // picker.add([column1,column2]); // enable this to resolve issue win.add(picker); win.open(); // must be after picker has been displayed picker.setSelectedRow(0, 2, false); picker.setSelectedRow(1, 3, false); {code} h2. Logs {code:lang=none|title=console} 605 AndroidRuntime D >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 605 AndroidRuntime D CheckJNI is ON 605 AndroidRuntime D --- registering native functions --- 60 ActivityManager I Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x 10000000 cmp=com.appcelerator.testing10/.Testing10Activity } 605 AndroidRuntime D Shutting down VM 60 ActivityManager I Start proc com.appcelerator.testing10 for activity com.appcelerator.testing10/.Testing10Activity: pid=61 2 uid=10040 gids={1015, 3003} 605 AndroidRuntime I NOTE: attach of thread 'Binder Thread #3' failed 612 TiApplication I (main) [0,0] checkpoint, app created. 612 TiApplication I (main) [787,787] Titanium 1.8.0.1 (2011/12/22 13:09 fbdc96f) 612 TiFastDev D (main) [189,976] Enabling Fastdev on port 53141 612 TiFastDev D (main) [21,997] sent tokens successfully 612 TiFastDev D (main) [1,998] Fastdev session handshake succesful. 612 TiApplication I (main) [6,1004] Titanium Javascript runtime: v8 612 TiApplication W (main) [166,1170] activity stack is emtpy, unable to get current activity 612 TiRootActivity I (main) [0,0] checkpoint, on root activity create, savedInstanceState: null 612 TiApplication W (main) [281,281] activity stack is emtpy, unable to get current activity 612 TiApplication W (main) [1,282] activity stack is emtpy, unable to get current activity 612 TiApplication W (main) [0,282] activity stack is emtpy, unable to get current activity 612 TiApplication E (KrollRuntimeThread) [1065,1347] APP PROXY: ti.modules.titanium.app.AppModule@44fcbc68 612 TiAssetHelper D Fetching "app.js" with Fastdev... 612 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy 612 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy 612 AndroidRuntime D Shutting down VM 612 TiApplication E (main) [946,2293] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to sta rt activity ComponentInfo{com.appcelerator.testing10/com.appcelerator.testing10.Testing10Activity}: java .lang.NullPointerException; Titanium 1.8.0.1,2011/12/22 13:09,fbdc96f 612 TiApplication E java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.testing10/com.appcel erator.testing10.Testing10Activity}: java.lang.NullPointerException 612 TiApplication E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 612 TiApplication E at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 612 TiApplication E at android.app.ActivityThread.access$2300(ActivityThread.java:125) 612 TiApplication E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 612 TiApplication E at android.os.Handler.dispatchMessage(Handler.java:99) 612 TiApplication E at android.os.Looper.loop(Looper.java:123) 612 TiApplication E at android.app.ActivityThread.main(ActivityThread.java:4627) 612 TiApplication E at java.lang.reflect.Method.invokeNative(Native Method) 612 TiApplication E at java.lang.reflect.Method.invoke(Method.java:521) 612 TiApplication E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 612 TiApplication E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 612 TiApplication E at dalvik.system.NativeStart.main(Native Method) 612 TiApplication E Caused by: java.lang.NullPointerException 612 TiApplication E at java.util.Arrays$ArrayList.<init>(Arrays.java:49) 612 TiApplication E at java.util.Arrays.asList(Arrays.java:171) 612 TiApplication E at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) 612 TiApplication E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) 612 TiApplication E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) 612 TiApplication E at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:440) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520) 612 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264) 612 TiApplication E at android.os.Handler.dispatchMessage(Handler.java:95) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215) 612 TiApplication E at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143) 612 TiApplication E at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417) 612 TiApplication E at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:337) 612 TiApplication E at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117) 612 TiApplication E at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46) 612 TiApplication E at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 612 TiApplication E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 612 TiApplication E ... 11 more 612 AndroidRuntime E FATAL EXCEPTION: main 612 AndroidRuntime E java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.testing10/com.appcel erator.testing10.Testing10Activity}: java.lang.NullPointerException 612 AndroidRuntime E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 612 AndroidRuntime E at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 612 AndroidRuntime E at android.app.ActivityThread.access$2300(ActivityThread.java:125) 612 AndroidRuntime E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 612 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:99) 612 AndroidRuntime E at android.os.Looper.loop(Looper.java:123) 612 AndroidRuntime E at android.app.ActivityThread.main(ActivityThread.java:4627) 612 AndroidRuntime E at java.lang.reflect.Method.invokeNative(Native Method) 612 AndroidRuntime E at java.lang.reflect.Method.invoke(Method.java:521) 612 AndroidRuntime E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 612 AndroidRuntime E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 612 AndroidRuntime E at dalvik.system.NativeStart.main(Native Method) 612 AndroidRuntime E Caused by: java.lang.NullPointerException 612 AndroidRuntime E at java.util.Arrays$ArrayList.<init>(Arrays.java:49) 612 AndroidRuntime E at java.util.Arrays.asList(Arrays.java:171) 612 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) 612 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) 612 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) 612 AndroidRuntime E at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:440) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520) 612 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264) 612 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:95) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215) 612 AndroidRuntime E at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143) 612 AndroidRuntime E at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417) 612 AndroidRuntime E at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:337) 612 AndroidRuntime E at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117) 612 AndroidRuntime E at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46) 612 AndroidRuntime E at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 612 AndroidRuntime E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 612 AndroidRuntime E ... 11 more 60 ActivityManager W Force finishing activity com.appcelerator.testing10/.Testing10Activity 60 ActivityManager W Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity 60 ActivityManager W Activity pause timeout for HistoryRecord{44f478e0 com.appcelerator.testing10/.Testing10Activity} 329 TiBaseActivity E (main) [150281,528726] Layout cleanup. 60 ActivityManager W Activity destroy timeout for HistoryRecord{44f478e0 com.appcelerator.testing10/.Testing10Activity} 612 Process I Sending signal. PID: 612 SIG: 9 60 ActivityManager I Process com.appcelerator.testing10 (pid 612) has died. {code} h2. Workaround Use the {{add()}} method rather than the {{columns}} property (see test case for example)

    Appcelerator JIRA | 5 years ago | Paul Dowsett
    java.lang.NullPointerException
  3. 0

    h2. Problem When an array of PickerColumns is given to Ti.UI.Picker.add() on Android, the app crashes. The same code given in the test case works properly on iOS and Mobileweb. Also to note, if the PickerColumns are given individually to the add() call, it works as expected. It is only when an array of PickerColumns is given to Picker.add() that the crash occurs. h2. test case {code:javascript} var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var picker = Ti.UI.createPicker({ top: 0, useSpinner: true }); var cols = []; for (var c = 0; c < 2; c++) { var col = Ti.UI.createPickerColumn(); for (var i = 0; i < 5; i++) { col.addRow(Ti.UI.createPickerRow({ title: 'row ' + i })); } cols.push(col); } picker.add(cols); win.add(picker); win.open(); {code} h2. adb logcat {code} E/AndroidRuntime( 9194): FATAL EXCEPTION: main E/AndroidRuntime( 9194): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.mcPicker/com.appc.mcPicker.McpickerActivity}: java.lang.NullPointerException E/AndroidRuntime( 9194): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/AndroidRuntime( 9194): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/AndroidRuntime( 9194): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/AndroidRuntime( 9194): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/AndroidRuntime( 9194): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 9194): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 9194): at android.app.ActivityThread.main(ActivityThread.java:4424) E/AndroidRuntime( 9194): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 9194): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 9194): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/AndroidRuntime( 9194): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime( 9194): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 9194): Caused by: java.lang.NullPointerException E/AndroidRuntime( 9194): at java.util.Arrays$ArrayList.<init>(Arrays.java:38) E/AndroidRuntime( 9194): at java.util.Arrays.asList(Arrays.java:154) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:218) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:423) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:446) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:446) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:525) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:204) E/AndroidRuntime( 9194): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:364) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:349) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:234) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:261) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:186) E/AndroidRuntime( 9194): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:638) E/AndroidRuntime( 9194): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:435) E/AndroidRuntime( 9194): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:145) E/AndroidRuntime( 9194): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) E/AndroidRuntime( 9194): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime( 9194): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime( 9194): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/AndroidRuntime( 9194): ... 11 more W/ActivityManager(29799): Force finishing activity com.appc.mcPicker/.McpickerActivity {code}

    Appcelerator JIRA | 4 years ago | Tony Lukasavage
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.mcPicker/com.appc.mcPicker.McpickerActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h2. Problem When an array of PickerColumns is given to Ti.UI.Picker.add() on Android, the app crashes. The same code given in the test case works properly on iOS and Mobileweb. Also to note, if the PickerColumns are given individually to the add() call, it works as expected. It is only when an array of PickerColumns is given to Picker.add() that the crash occurs. h2. test case {code:javascript} var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var picker = Ti.UI.createPicker({ top: 0, useSpinner: true }); var cols = []; for (var c = 0; c < 2; c++) { var col = Ti.UI.createPickerColumn(); for (var i = 0; i < 5; i++) { col.addRow(Ti.UI.createPickerRow({ title: 'row ' + i })); } cols.push(col); } picker.add(cols); win.add(picker); win.open(); {code} h2. adb logcat {code} E/AndroidRuntime( 9194): FATAL EXCEPTION: main E/AndroidRuntime( 9194): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.mcPicker/com.appc.mcPicker.McpickerActivity}: java.lang.NullPointerException E/AndroidRuntime( 9194): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/AndroidRuntime( 9194): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/AndroidRuntime( 9194): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/AndroidRuntime( 9194): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/AndroidRuntime( 9194): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 9194): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 9194): at android.app.ActivityThread.main(ActivityThread.java:4424) E/AndroidRuntime( 9194): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 9194): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 9194): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/AndroidRuntime( 9194): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime( 9194): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 9194): Caused by: java.lang.NullPointerException E/AndroidRuntime( 9194): at java.util.Arrays$ArrayList.<init>(Arrays.java:38) E/AndroidRuntime( 9194): at java.util.Arrays.asList(Arrays.java:154) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) E/AndroidRuntime( 9194): at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:218) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:423) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:446) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:446) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:525) E/AndroidRuntime( 9194): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:204) E/AndroidRuntime( 9194): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:364) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:349) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:234) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:261) E/AndroidRuntime( 9194): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:186) E/AndroidRuntime( 9194): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:638) E/AndroidRuntime( 9194): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:435) E/AndroidRuntime( 9194): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:145) E/AndroidRuntime( 9194): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) E/AndroidRuntime( 9194): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime( 9194): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime( 9194): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/AndroidRuntime( 9194): ... 11 more W/ActivityManager(29799): Force finishing activity com.appc.mcPicker/.McpickerActivity {code}

    Appcelerator JIRA | 4 years ago | Tony Lukasavage
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.mcPicker/com.appc.mcPicker.McpickerActivity}: java.lang.NullPointerException
  6. 0

    h2. Problem The [Titanium.UI.Picker.add|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker.add-method.html] method causes an exception when used to add columns. Note: this works as expected on iOS. Also note that adding rows also needs to be tested. h2. Test case {code:lang=javascript|title=app.js} var win = Ti.UI.createWindow({ backgroundColor: 'white', exitOnClose: true, fullscreen: false, title: 'Use picker to make selection' }); var fruit = [ 'Bananas', 'Grapes', 'Blueberries', 'Strawberries' ]; var color = [ 'blue', 'red', 'yellow', 'white' ]; var column1 = Ti.UI.createPickerColumn(); for(var i=0, ilen=fruit.length; i<ilen; i++){ var row = Ti.UI.createPickerRow({ title: fruit[i] }); column1.addRow(row); } var column2 = Ti.UI.createPickerColumn(); for(var i=0, ilen=color.length; i<ilen; i++){ var row = Ti.UI.createPickerRow({ title: color[i] }); column2.addRow(row); } var picker = Ti.UI.createPicker({ // columns: [column1, column2], // this works on both platforms selectionIndicator: true, useSpinner: true, // required in order to use multi-column pickers with Android top:50 }); picker.add([column1, column2]); // this only works on ios function pickerDefaults(obj){ // on iOS, must be after picker has been rendered picker.setSelectedRow(0, 2, false); picker.setSelectedRow(1, 3, false); } win.add(picker); var isAndroid = Ti.Platform.osname === 'android'; if(isAndroid){ pickerDefaults(picker); } win.open(); if(!isAndroid){ setTimeout(function(){ pickerDefaults(picker); }, 1500); } {code} h2. Logs {code:lang=none|title=console} 368 TiFastDev D (Thread-8) [41726,42143] Execute command: kill 368 TiFastDev W (Thread-8) [0,42143] Killing app from Fastdev server request 368 Process I Sending signal. PID: 368 SIG: 9 60 ActivityManager I Process com.appcelerator.testing10 (pid 368) has died. 60 WindowManager I WIN DEATH: Window{450dde00 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity paused=false} 60 WindowManager I WIN DEATH: Window{4503e840 com.appcelerator.testing10/com.appcelerator.testing10.Testing10Activity paused=true} 60 InputManagerService W Got RemoteException sending setActive(false) notification to pid 368 uid 10036 390 AndroidRuntime D 390 AndroidRuntime D >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 390 AndroidRuntime D CheckJNI is ON 390 AndroidRuntime D --- registering native functions --- 60 ActivityManager I Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.appcelerator.testing10/.Testing10Activity } 60 ActivityManager I Start proc com.appcelerator.testing10 for activity com.appcelerator.testing10/.Testing10Activity: pid=396 uid=10036 gids={1015, 3003} 390 AndroidRuntime D Shutting down VM 390 AndroidRuntime I NOTE: attach of thread 'Binder Thread #3' failed 396 TiApplication I (main) [0,0] checkpoint, app created. 396 TiApplication I (main) [214,214] Titanium 1.8.1 (2012/01/27 17:31 a24502a) 396 TiFastDev D (main) [147,361] Enabling Fastdev on port 50442 396 TiFastDev D (main) [10,371] sent tokens successfully 396 TiFastDev D (main) [2,373] Fastdev session handshake succesful. 396 TiApplication I (main) [5,378] Titanium Javascript runtime: v8 396 TiApplication W (main) [42,420] activity stack is emtpy, unable to get current activity 396 TiRootActivity I (main) [0,0] checkpoint, on root activity create, savedInstanceState: null 396 TiApplication W (main) [91,91] activity stack is emtpy, unable to get current activity 396 TiApplication W (main) [1,92] activity stack is emtpy, unable to get current activity 396 TiApplication W (main) [1,93] activity stack is emtpy, unable to get current activity 396 TiApplication E (KrollRuntimeThread) [971,1064] APP PROXY: ti.modules.titanium.app.AppModule@44f5c9e8 396 TiAssetHelper D Fetching "app.js" with Fastdev... 60 NotificationService W Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@44f810a8 in package com.appcelerator.testing10 60 ActivityManager W setProcessForeground called on unknown pid: 368 396 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy 396 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy 60 ActivityManager I Starting activity: Intent { cmp=com.appcelerator.testing10/org.appcelerator.titanium.TiActivity (has extras) } 396 TiRootActivity I (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.testing10.Testing10Activity@44f01ce8 60 ActivityManager I Displayed activity com.appcelerator.testing10/org.appcelerator.titanium.TiActivity: 241 ms (total 3383 ms) 396 AndroidRuntime D Shutting down VM 396 TiApplication E (main) [363,363] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 1.8.1,2012/01/27 17:31,a24502a 396 TiApplication E java.lang.NullPointerException 396 TiApplication E at java.util.Arrays$ArrayList.<init>(Arrays.java:49) 396 TiApplication E at java.util.Arrays.asList(Arrays.java:171) 396 TiApplication E at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) 396 TiApplication E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) 396 TiApplication E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) 396 TiApplication E at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219) 396 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:448) 396 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434) 396 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471) 396 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456) 396 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434) 396 TiApplication E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471) 396 TiApplication E at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:81) 396 TiApplication E at android.os.Handler.dispatchMessage(Handler.java:95) 396 TiApplication E at android.os.Looper.loop(Looper.java:123) 396 TiApplication E at android.app.ActivityThread.main(ActivityThread.java:4627) 396 TiApplication E at java.lang.reflect.Method.invokeNative(Native Method) 396 TiApplication E at java.lang.reflect.Method.invoke(Method.java:521) 396 TiApplication E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 396 TiApplication E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 396 TiApplication E at dalvik.system.NativeStart.main(Native Method) 396 AndroidRuntime E FATAL EXCEPTION: main 396 AndroidRuntime E java.lang.NullPointerException 396 AndroidRuntime E at java.util.Arrays$ArrayList.<init>(Arrays.java:49) 396 AndroidRuntime E at java.util.Arrays.asList(Arrays.java:171) 396 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28) 396 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180) 396 AndroidRuntime E at ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38) 396 AndroidRuntime E at ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219) 396 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:448) 396 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434) 396 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471) 396 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456) 396 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434) 396 AndroidRuntime E at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471) 396 AndroidRuntime E at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:81) 396 AndroidRuntime E at android.os.Handler.dispatchMessage(Handler.java:95) 396 AndroidRuntime E at android.os.Looper.loop(Looper.java:123) 396 AndroidRuntime E at android.app.ActivityThread.main(ActivityThread.java:4627) 396 AndroidRuntime E at java.lang.reflect.Method.invokeNative(Native Method) 396 AndroidRuntime E at java.lang.reflect.Method.invoke(Method.java:521) 396 AndroidRuntime E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 396 AndroidRuntime E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 396 AndroidRuntime E at dalvik.system.NativeStart.main(Native Method) 60 ActivityManager W Force finishing activity com.appcelerator.testing10/org.appcelerator.titanium.TiActivity 60 ActivityManager W Force finishing activity com.appcelerator.testing10/.Testing10Activity 60 ActivityManager W Activity pause timeout for HistoryRecord{45050908 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity} 60 ActivityManager W Activity destroy timeout for HistoryRecord{4500a9c8 com.appcelerator.testing10/.Testing10Activity} 60 ActivityManager W Activity destroy timeout for HistoryRecord{45050908 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity} 396 Process I Sending signal. PID: 396 SIG: 9 60 WindowManager I WIN DEATH: Window{450c5888 com.appcelerator.testing10/com.appcelerator.testing10.Testing10Activity paused=true} 60 WindowManager I WIN DEATH: Window{450f4d00 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity paused=false} 60 ActivityManager I Process com.appcelerator.testing10 (pid 396) has died. {code} h2. Workaround Use the columns property instead

    Appcelerator JIRA | 5 years ago | Paul Dowsett
    java.lang.NullPointerException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.util.Arrays$ArrayList.<init>()
  2. Java RT
    Arrays.asList
    1. java.util.Arrays$ArrayList.<init>(Arrays.java:49)
    2. java.util.Arrays.asList(Arrays.java:171)
    2 frames
  3. ti.modules.titanium
    PickerColumnProxy.createView
    1. ti.modules.titanium.ui.widget.picker.TextWheelAdapter.<init>(TextWheelAdapter.java:28)
    2. ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180)
    3. ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.<init>(TiUISpinnerColumn.java:38)
    4. ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219)
    4 frames
  4. org.appcelerator.titanium
    TiViewProxy.handleMessage
    1. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:440)
    2. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427)
    3. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456)
    4. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441)
    5. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427)
    6. org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520)
    7. org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264)
    7 frames
  5. Android Platform
    Handler.dispatchMessage
    1. android.os.Handler.dispatchMessage(Handler.java:95)
    1 frame
  6. org.appcelerator.kroll
    KrollProxy.fireSyncEvent
    1. org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318)
    2. org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303)
    3. org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188)
    4. org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215)
    5. org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143)
    6. org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417)
    6 frames
  7. org.appcelerator.titanium
    TiRootActivity.onCreate
    1. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:337)
    2. org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117)
    3. org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46)
    3 frames
  8. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
    4. android.app.ActivityThread.access$2300(ActivityThread.java:125)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:123)
    8. android.app.ActivityThread.main(ActivityThread.java:4627)
    8 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:521)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame