{ "id": "118595", "key": "TIMOB-14890", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15599", "description": "2013 Sprint 17 API", "name": "2013 Sprint 17 API", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-19T22:37:45.000+0000", "created": "2013-08-15T19:35:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_picker", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-10-10T11:30:05.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nWhen removing columns from a picker, if useSpinner is set to true, the application crashes\r\n\r\nh2. Code to reproduce\r\nJust click the remove button in the app:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n useSpinner: true\r\n});\r\n\r\nvar fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ];\r\nvar column1 = Ti.UI.createPickerColumn();\r\n\r\nfor(var i=0, ilen=fruit.length; i= 0; x-- ){\r\n var _row = _col.rows[x];\r\n _col.removeRow(_row);\r\n }\r\n});\r\nwin.add(btn);\r\n{code}\r\n\r\n\r\nh2. Error log\r\n{code}\r\nE/TiApplication(21214): java.lang.NullPointerException: storage == null\r\nE/TiApplication(21214): \tat java.util.Arrays$ArrayList.(Arrays.java:38)\r\nE/TiApplication(21214): \tat java.util.Arrays.asList(Arrays.java:154)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.widget.picker.TextWheelAdapter.(TextWheelAdapter.java:28)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinner.refreshColumn(TiUISpinner.java:63)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinner.refreshColumn(TiUISpinner.java:56)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinner.onColumnModelChanged(TiUISpinner.java:99)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.PickerProxy.handleFireColumnModelChange(PickerProxy.java:706)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.PickerProxy.fireColumnModelChange(PickerProxy.java:694)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.PickerProxy.rowRemoved(PickerProxy.java:765)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.PickerColumnProxy.handleRemoveRow(PickerColumnProxy.java:160)\r\nE/TiApplication(21214): \tat ti.modules.titanium.ui.PickerColumnProxy.handleMessage(PickerColumnProxy.java:76)\r\nE/TiApplication(21214): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TiApplication(21214): \tat android.os.Looper.loop(Looper.java:137)\r\nE/TiApplication(21214): \tat android.app.ActivityThread.main(ActivityThread.java:5103)\r\nE/TiApplication(21214): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/TiApplication(21214): \tat java.lang.reflect.Method.invoke(Method.java:525)\r\nE/TiApplication(21214): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)\r\nE/TiApplication(21214): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\nE/TiApplication(21214): \tat dalvik.system.NativeStart.main(Native Method)\r\nE/AndroidRuntime(21214): FATAL EXCEPTION: main\r\nE/AndroidRuntime(21214): java.lang.NullPointerException: storage == null\r\nE/AndroidRuntime(21214): \tat java.util.Arrays$ArrayList.(Arrays.java:38)\r\nE/AndroidRuntime(21214): \tat java.util.Arrays.asList(Arrays.java:154)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.widget.picker.TextWheelAdapter.(TextWheelAdapter.java:28)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinner.refreshColumn(TiUISpinner.java:63)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinner.refreshColumn(TiUISpinner.java:56)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.widget.picker.TiUISpinner.onColumnModelChanged(TiUISpinner.java:99)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.PickerProxy.handleFireColumnModelChange(PickerProxy.java:706)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.PickerProxy.fireColumnModelChange(PickerProxy.java:694)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.PickerProxy.rowRemoved(PickerProxy.java:765)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.PickerColumnProxy.handleRemoveRow(PickerColumnProxy.java:160)\r\nE/AndroidRuntime(21214): \tat ti.modules.titanium.ui.PickerColumnProxy.handleMessage(PickerColumnProxy.java:76)\r\nE/AndroidRuntime(21214): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/AndroidRuntime(21214): \tat android.os.Looper.loop(Looper.java:137)\r\nE/AndroidRuntime(21214): \tat android.app.ActivityThread.main(ActivityThread.java:5103)\r\nE/AndroidRuntime(21214): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/AndroidRuntime(21214): \tat java.lang.reflect.Method.invoke(Method.java:525)\r\nE/AndroidRuntime(21214): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)\r\nE/AndroidRuntime(21214): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\nE/AndroidRuntime(21214): \tat dalvik.system.NativeStart.main(Native Method)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.PickerColumn exception when calling removeRow and useSpinner is true", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.1.1.GA\r\nAndroid 4.3", "comment": { "comments": [ { "id": "266843", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR:- \r\nhttps://github.com/appcelerator/titanium_mobile/pull/4576", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-08-16T06:27:23.000+0000", "updated": "2013-08-16T06:27:23.000+0000" }, { "id": "274583", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\n\r\nAppc-Studio: 3.2.0.201310100354\r\nSdk:3.2.0.v20131009134844\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3)\r\nXcode: 5", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-10T11:30:05.000+0000", "updated": "2013-10-10T11:30:05.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }