{ "id": "175956", "key": "AC-6662", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2021-01-14T14:58:14.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-14T14:58:14.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "The following example crashes the app with:\r\n\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.titanium.proxy.TiViewProxy.hierarchyHasListener(java.lang.String)' on a null object reference\r\n at ti.modules.titanium.ui.widget.TiUIScrollView$TiScrollViewLayout$1.onSingleTapConfirmed(TiUIScrollView.java:82)\r\n at android.view.GestureDetector$GestureHandler.handleMessage(GestureDetector.java:323)\r\n at android.os.Handler.dispatchMessage(Handler.java:107)\r\n at android.os.Looper.loop(Looper.java:214)\r\n at android.app.ActivityThread.main(ActivityThread.java:7356)\r\n at java.lang.reflect.Method.invoke(Native Method)\r\n at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)\r\n\r\n{code}\r\nconst win=Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\nconst view=Ti.UI.createScrollView({\r\n\tbackgroundColor:'red'\r\n});\r\nview.addEventListener('click',()=>view.parent.remove(view));\t\r\nwin.add(view); \r\nwin.open();\r\n{code}\r\nProbably the fix in https://github.com/appcelerator/titanium_mobile/pull/8726 should be used also for TiScrollView.", "attachment": [], "flagged": false, "summary": "Android: NullPointerException when listening for click events for TiScrollView", "creator": { "name": "mj", "key": "mj", "displayName": "martin", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "mj", "key": "mj", "displayName": "martin", "active": true, "timeZone": "Europe/Berlin" }, "environment": "9.3.0.GA", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }