{ "id": "165111", "key": "TIMOB-24262", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-12T09:30:18.000+0000", "created": "2016-12-23T09:33:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-12T17:44:09.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": "6.1.0.v20161222061413\r\nclick event has error, singletap is ok.\r\n\r\nTest code\r\n{code:java}\r\nvar win = Ti.UI.createWindow({});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n layout: 'vertical'\r\n});\r\nvar view1 = Ti.UI.createView({\r\n backgroundColor:'red', top: 10, height: 200, width: 1000\r\n});\r\nvar view2 = Ti.UI.createView({\r\n backgroundColor:'blue', top: 10, height: 200, width: 1000\r\n});\r\nscrollView.add(view1);\r\nscrollView.add(view2);\r\nwin.add(scrollView);\r\nwin.open();\r\n\r\nview1.addEventListener('click', function() {\r\n // error\r\n scrollView.remove(view1);\r\n});\r\nview2.addEventListener('singletap', function() {\r\n // ok\r\n scrollView.remove(view2);\r\n});\r\n{code}\r\n\r\nError message\r\n{code:java}\r\n[ERROR] TiApplication: (main) [5747,6000] Sending event: exception on thread: main msg:java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.titanium.proxy.TiViewProxy.hierarchyHasListener(java.lang.String)' on a null object reference; Titanium 6.1.0,2016/12/22 06:14,undefined\r\n[ERROR] TiApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.titanium.proxy.TiViewProxy.hierarchyHasListener(java.lang.String)' on a null object reference\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.view.TiUIView$7.onSingleTapConfirmed(TiUIView.java:1607)\r\n[ERROR] TiApplication: \tat android.view.GestureDetector$GestureHandler.handleMessage(GestureDetector.java:300)\r\n[ERROR] TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] TiApplication: \tat android.os.Looper.loop(Looper.java:148)\r\n[ERROR] TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5417)\r\n[ERROR] TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n[ERROR] TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android : Crash when Try to remove view from parents.", "creator": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "subtasks": [], "reporter": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "environment": null, "closedSprints": [ { "id": 787, "state": "closed", "name": "2017 Sprint 01 SDK", "startDate": "2016-12-31T02:15:33.446Z", "endDate": "2017-01-14T02:15:00.000Z", "completeDate": "2017-01-15T00:00:19.006Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "403845", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, What is the Android version you are trying on? I just tested your sample code in Android 6.0.1 device with SDK 6.0.1.GA. The app works as expected. Both view was removed successfully. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-23T15:55:07.000+0000", "updated": "2016-12-23T15:55:07.000+0000" }, { "id": "403846", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "body": "I was wroten. Titanium SDK 6.1.0.v20161222061413.\nI know GA build is ok.", "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2016-12-23T16:00:36.000+0000", "updated": "2016-12-23T16:00:36.000+0000" }, { "id": "403877", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Use the GA release for your development. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-27T15:31:28.000+0000", "updated": "2016-12-27T15:31:28.000+0000" }, { "id": "404027", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8726", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-03T19:52:11.000+0000", "updated": "2017-01-03T19:52:11.000+0000" }, { "id": "404537", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, Error no longer occurs on the latest build of the SDK. \r\n*Environment*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nAndroid 7.1 (Google Nexus 6P)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.1.0.v20170112013001\r\nXcode: 8.0\r\nAppcelerator Studio: 4.8.1.201612050850\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-12T17:43:25.000+0000", "updated": "2017-01-12T17:43:25.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }