{ "id": "161596", "key": "AC-4012", "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": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-07-16T08:54:31.000+0000", "created": "2016-07-07T10:51:25.000+0000", "labels": [ "scrollableView", "titanium" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-22T08:09:36.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": [], "description": "Hello,\r\n\r\nI'm using a scrollableView on my app. On iOS all works perfect, but on Android always appear this error:\r\n\r\n\r\n{code:java}\r\n[ERROR] : TiApplication: (main) [11106,32386] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 5.4.0,2016/04/25 22:10,63d6351\r\n[ERROR] : TiApplication: java.lang.NullPointerException\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.TiUIScrollableView$ViewPagerAdapter.instantiateItem(TiUIScrollableView.java:533)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.PagerAdapter.instantiateItem(PagerAdapter.java:110)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.ViewPager.addNewItem(ViewPager.java:870)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.ViewPager.populate(ViewPager.java:1020)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:552)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.ViewPager.dataSetChanged(ViewPager.java:946)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.ViewPager$PagerObserver.onChanged(ViewPager.java:2910)\r\n[ERROR] : TiApplication: \tat android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)\r\n[ERROR] : TiApplication: \tat android.support.v4.view.PagerAdapter.notifyDataSetChanged(PagerAdapter.java:276)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.TiUIScrollableView.setViews(TiUIScrollableView.java:472)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.ScrollableViewProxy.handleMessage(ScrollableViewProxy.java:110)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:146)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5511)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)\r\n[ERROR] : TiApplication:\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n{code}\r\n\r\nThis error appear when this line is executed:\r\n\r\n{code:java}\r\n$.lists.setViews(tables_sort);\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android - scrollableView java.lang.NullPointerException", "creator": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.5\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 4294967296\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.8\r\nTitanium SDK\r\n SDK Version = 5.4.0.v20160425220956\r\n SDK Path = /Users/amurcia/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160425220956\r\n Target Platform = android", "comment": { "comments": [ { "id": "390284", "author": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm having this error now when I scroll \r\nPlease any solution???", "updateAuthor": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-11T11:52:45.000+0000", "updated": "2016-07-11T11:52:45.000+0000" }, { "id": "390300", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi,\r\nThanks for reaching us. Do you have some test case to demonstrate what you are trying?\r\nWe can offer you to look into your code and help to identify errors.\r\n\r\nRegards,\r\nAminul\r\n", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-07-11T14:51:23.000+0000", "updated": "2016-07-11T14:51:23.000+0000" }, { "id": "403790", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "body": "This is an error when closing a window in a ScrollableView.", "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2016-12-22T08:02:52.000+0000", "updated": "2016-12-22T08:02:52.000+0000" }, { "id": "403791", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2016-12-22T08:09:36.000+0000", "updated": "2016-12-22T08:09:36.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }