{"action":"opened","issue":{"url":"https://api.github.com/repos/cymcsg/UltimateRecyclerView/issues/183","labels_url":"https://api.github.com/repos/cymcsg/UltimateRecyclerView/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/cymcsg/UltimateRecyclerView/issues/183/comments","events_url":"https://api.github.com/repos/cymcsg/UltimateRecyclerView/issues/183/events","html_url":"https://github.com/cymcsg/UltimateRecyclerView/issues/183","id":105345748,"number":183,"title":"IllegalStateException: ViewStub must have a non-null ViewGroup viewParent","user":{"login":"alirezaaa","id":7955356,"avatar_url":"https://avatars.githubusercontent.com/u/7955356?v=3","gravatar_id":"","url":"https://api.github.com/users/alirezaaa","html_url":"https://github.com/alirezaaa","followers_url":"https://api.github.com/users/alirezaaa/followers","following_url":"https://api.github.com/users/alirezaaa/following{/other_user}","gists_url":"https://api.github.com/users/alirezaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/alirezaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alirezaaa/subscriptions","organizations_url":"https://api.github.com/users/alirezaaa/orgs","repos_url":"https://api.github.com/users/alirezaaa/repos","events_url":"https://api.github.com/users/alirezaaa/events{/privacy}","received_events_url":"https://api.github.com/users/alirezaaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-08T10:06:50Z","updated_at":"2015-09-08T10:06:50Z","closed_at":null,"body":"Hi,\r\n\r\nI think you're setting something null and because of that, Android throws an exception.\r\n\r\n**The complete trace is:**\r\n```\r\njava.lang.IllegalStateException: ViewStub must have a non-null ViewGroup viewParent\r\n            at android.view.ViewStub.inflate(ViewStub.java:292)\r\n            at com.marshalchen.ultimaterecyclerview.UltimateRecyclerView.setEmptyView(UltimateRecyclerView.java:183)\r\n            at com.collect_up.c_up.fragments.ShopPagerFragment$2.onFailure(ShopPagerFragment.java:145)\r\n            at com.collect_up.c_up.helpers.Pagination$5.onFailure(Pagination.java:123)\r\n            at com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:379)\r\n            at com.loopj.android.http.AsyncHttpResponseHandler$ResponderHandler.handleMessage(AsyncHttpResponseHandler.java:195)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n```\r\n\r\nThe error was thrown because of following line that I've set.\r\n```\r\nmRecyclerView.setEmptyView(R.layout.empty_list_view_cause_get_data_error);\r\n```\r\n**And the used layout content is:**\r\n```\r\n<TextView\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:gravity=\"center\"\r\n    android:text=\"@string/coudnt_load_data\" />\r\n```"}}