{ "id": "172054", "key": "TIMOB-26295", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-01T13:49:00.000+0000", "created": "2018-08-13T17:47:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-09-05T10:14:20.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": "When you click on a listitem, using a Listview with template, it causes a nullpointer.\r\nIt happens when you try to manipulate the items of a section.\r\n\r\n*Test case:*\r\n\r\n*index.xml*\r\n\r\n{code:java}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n-------------------\r\n\r\n*index.js*\r\n\r\n{code:java}\r\nfunction onMenuItemClick(e) {\r\n $.listView.sections[0].items = [];\r\n}\r\n\r\nvar menuItems = [];\r\n\r\nmenuItems.push({\r\n name: {\r\n text: \"A\"\r\n },\r\n template: 'menuItem'\r\n}, {\r\n name: {\r\n text: 'B'\r\n },\r\n template: 'menuItem'\r\n}, {\r\n name: {\r\n text: \"C\"\r\n },\r\n template: 'menuItem'\r\n}, {\r\n name: {\r\n text: \"D\"\r\n },\r\n template: 'menuItem'\r\n});\r\n\r\n$.listView.sections[0].items = menuItems;\r\n\r\n$.win.open();\r\n{code}\r\n", "attachment": [ { "id": "65435", "filename": "Screen Shot 2018-08-13 at 14.45.32.png", "author": { "name": "zaedyjava", "key": "zaedyjava", "displayName": "Zaedy Dantas Sayão", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-13T17:45:51.000+0000", "size": 49254, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Listview with template causes a nullpointer on itemclick", "creator": { "name": "zaedyjava", "key": "zaedyjava", "displayName": "Zaedy Dantas Sayão", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zaedyjava", "key": "zaedyjava", "displayName": "Zaedy Dantas Sayão", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 7.4.0\r\nPlatform & version: >= Android 4.4\r\nDevice Details: Android emulator and physical (Moto G 2, Moto G5S, Zenfone 3) \r\nHost Operating System: OS 10.13.6 and Windows 10", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 }, { "id": 1070, "state": "closed", "name": "2018 Sprint 18 SDK", "startDate": "2018-08-26T16:14:35.297Z", "endDate": "2018-09-09T16:14:00.000Z", "completeDate": "2018-09-11T20:59:21.495Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "440702", "author": { "name": "zaedyjava", "key": "zaedyjava", "displayName": "Zaedy Dantas Sayão", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have a fix to the problem.\r\nI'll submit a PR after the issue has been moved to the correct project.", "updateAuthor": { "name": "zaedyjava", "key": "zaedyjava", "displayName": "Zaedy Dantas Sayão", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-13T17:52:18.000+0000", "updated": "2018-08-13T17:52:18.000+0000" }, { "id": "440708", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested the issue and was able to reproduce it as described. I will forward this to our engineering. Please submit the PR. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-08-13T19:16:29.000+0000", "updated": "2018-08-13T19:16:29.000+0000" }, { "id": "440763", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10251", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-14T16:00:51.000+0000", "updated": "2018-08-14T16:00:51.000+0000" }, { "id": "441338", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*Closing ticket.*\r\n\r\nA nullpoint error is no longer thrown when an item in the listView is clicked.\r\n\r\nThe fix is present in SDK:\r\n\r\n{noformat}\r\n7.5.0.v20180904155047\r\n{noformat}\r\n\r\n*ENV*\r\n\r\n{noformat}\r\nPixel 2 XL (9.0)\r\nEmulator (8.1, 7.1.1)\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.6\r\nTi CLI: 5.1.1\r\nNode: 8.9.4\r\nNPM: 6.3.0\r\n{noformat}", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-09-05T10:14:12.000+0000", "updated": "2018-09-05T10:14:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }