{ "id": "121548", "key": "TIMOB-15567", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15704", "description": "2013 Sprint 22 API", "name": "2013 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "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-10-24T17:42:24.000+0000", "created": "2013-10-23T16:53:59.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Alloy", "module_listview", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-24T17:57:31.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": "Our partner Alfresco discovered this issue when trying to build their Alfresco SDK test harness for Android, using SDK 3.1.3. This is stopping them progressing with the Android version.\r\n\r\nThe issue is in the ListViews in the AlfrescoTestHarness Alloy project. These work fine for iOS, but cause an exception on Android.\r\n\r\nI have attached the source zip to this ticket, and this is the exception that occurs, during app start up (before any of our code is called):\r\n\r\n{code}\r\n[ERROR][TiApplication( 478)] (main) [8065,10751] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.1.3,2013/09/18 12:01,222f4d1\r\n[ERROR][TiApplication( 478)] java.lang.NullPointerException\r\n[ERROR][TiApplication( 478)] at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157)\r\n[ERROR][TiApplication( 478)] at android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR][TiApplication( 478)] at android.os.Looper.loop(Looper.java:130)\r\n[ERROR][TiApplication( 478)] at android.app.ActivityThread.main(ActivityThread.java:3683)\r\n[ERROR][TiApplication( 478)] at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR][TiApplication( 478)] at java.lang.reflect.Method.invoke(Method.java:507)\r\n[ERROR][TiApplication( 478)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)\r\n[ERROR][TiApplication( 478)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)\r\n[ERROR][TiApplication( 478)] at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR][AndroidRuntime( 478)] FATAL EXCEPTION: main\r\n[ERROR][AndroidRuntime( 478)] java.lang.NullPointerException\r\n[ERROR][AndroidRuntime( 478)] at ti.modules.titanium.ui.widget.listview.ListSectionProxy.handleMessage(ListSectionProxy.java:157)\r\n[ERROR][AndroidRuntime( 478)] at android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR][AndroidRuntime( 478)] at android.os.Looper.loop(Looper.java:130)\r\n[ERROR][AndroidRuntime( 478)] at android.app.ActivityThread.main(ActivityThread.java:3683)\r\n[ERROR][AndroidRuntime( 478)] at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR][AndroidRuntime( 478)] at java.lang.reflect.Method.invoke(Method.java:507)\r\n[ERROR][AndroidRuntime( 478)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)\r\n[ERROR][AndroidRuntime( 478)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)\r\n[ERROR][AndroidRuntime( 478)] at dalvik.system.NativeStart.main(Native Method)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Alloy ListView app crash on startup", "creator": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "276379", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I couldn't reproduce the crash running AlfrescoTestHarness. I do see a login screen with credentials pop up. Here's another test case that will produce the same crash on start up:\n{code}\nvar sections = [];\nvar animalsSection = Ti.UI.createListSection({ headerTitle: 'Animals'});\n\tvar animalsDataSet = [\n\t {properties: { title: 'Deer', searchableText:'Animals Deer', itemId:'3 0'}},\n\t {properties: { title: 'Dog', searchableText:'Animals Dog', itemId:'3 1'}},\n\t {properties: { title: 'Cat', searchableText:'Animals Cat', itemId:'3 2'}},\n\t {properties: { title: 'Elephant', searchableText:'Animals Elephant', itemId:'3 3'}},\n\t];\n\tanimalsSection.getItems();\n\tanimalsSection.setItems(animalsDataSet);\n\tsections.push(animalsSection);\n\tvar listView = Ti.UI.createListView({top: 250});\n\tlistView.sections = sections;\n\t\n\tvar win = Ti.UI.createWindow();\n\twin.add(listView);\n\twin.open();\n{code}", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T18:00:36.000+0000", "updated": "2013-10-23T18:00:36.000+0000" }, { "id": "276395", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T18:36:41.000+0000", "updated": "2013-10-23T18:36:41.000+0000" }, { "id": "276515", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed.\n\nTiSDK 3.2.0.v20131023160426\nCLI 3.2.0\nTitanium Studio 3.2.0.201310230548\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T00:12:15.000+0000", "updated": "2013-10-24T00:12:15.000+0000" }, { "id": "276629", "author": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Remove Alfresco SDK attachment.", "updateAuthor": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T17:42:24.000+0000", "updated": "2013-10-24T17:42:24.000+0000" }, { "id": "276632", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/4829", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T17:57:31.000+0000", "updated": "2013-10-24T17:57:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }