{"action":"created","issue":{"url":"https://api.github.com/repos/Azoft/CarouselLayoutManager/issues/3","repository_url":"https://api.github.com/repos/Azoft/CarouselLayoutManager","labels_url":"https://api.github.com/repos/Azoft/CarouselLayoutManager/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Azoft/CarouselLayoutManager/issues/3/comments","events_url":"https://api.github.com/repos/Azoft/CarouselLayoutManager/issues/3/events","html_url":"https://github.com/Azoft/CarouselLayoutManager/issues/3","id":151371099,"number":3,"title":"itemCount==0 的时候发生NullPointerException, 希望可以解决一下, 谢谢Thanks","user":{"login":"Lerist","id":3282323,"avatar_url":"https://avatars.githubusercontent.com/u/3282323?v=3","gravatar_id":"","url":"https://api.github.com/users/Lerist","html_url":"https://github.com/Lerist","followers_url":"https://api.github.com/users/Lerist/followers","following_url":"https://api.github.com/users/Lerist/following{/other_user}","gists_url":"https://api.github.com/users/Lerist/gists{/gist_id}","starred_url":"https://api.github.com/users/Lerist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lerist/subscriptions","organizations_url":"https://api.github.com/users/Lerist/orgs","repos_url":"https://api.github.com/users/Lerist/repos","events_url":"https://api.github.com/users/Lerist/events{/privacy}","received_events_url":"https://api.github.com/users/Lerist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T12:18:09Z","updated_at":"2016-04-29T10:16:45Z","closed_at":"2016-04-29T10:16:45Z","body":"Log:\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference\r\n                                                                        at com.azoft.carousellayoutmanager.CarouselLayoutManager.getScrollItemSize(CarouselLayoutManager.java:574)\r\n                                                                        at com.azoft.carousellayoutmanager.CarouselLayoutManager.getMaxScrollOffset(CarouselLayoutManager.java:415)\r\n                                                                        at com.azoft.carousellayoutmanager.CarouselLayoutManager.getCurrentScrollPosition(CarouselLayoutManager.java:404)\r\n                                                                        at com.azoft.carousellayoutmanager.CarouselLayoutManager.getOffsetCenterView(CarouselLayoutManager.java:584)\r\n                                                                        at com.azoft.carousellayoutmanager.CenterScrollListener.onScrollStateChanged(CenterScrollListener.java:25)\r\n                                                                        at android.support.v7.widget.RecyclerView.dispatchOnScrollStateChanged(RecyclerView.java:3990)"},"comment":{"url":"https://api.github.com/repos/Azoft/CarouselLayoutManager/issues/comments/215677613","html_url":"https://github.com/Azoft/CarouselLayoutManager/issues/3#issuecomment-215677613","issue_url":"https://api.github.com/repos/Azoft/CarouselLayoutManager/issues/3","id":215677613,"user":{"login":"mig35","id":5335395,"avatar_url":"https://avatars.githubusercontent.com/u/5335395?v=3","gravatar_id":"","url":"https://api.github.com/users/mig35","html_url":"https://github.com/mig35","followers_url":"https://api.github.com/users/mig35/followers","following_url":"https://api.github.com/users/mig35/following{/other_user}","gists_url":"https://api.github.com/users/mig35/gists{/gist_id}","starred_url":"https://api.github.com/users/mig35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mig35/subscriptions","organizations_url":"https://api.github.com/users/mig35/orgs","repos_url":"https://api.github.com/users/mig35/repos","events_url":"https://api.github.com/users/mig35/events{/privacy}","received_events_url":"https://api.github.com/users/mig35/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T10:16:45Z","updated_at":"2016-04-29T10:16:45Z","body":"fixed in: compile 'com.azoft.carousellayoutmanager:carousel:1.0.2'"}}