{"push_id":1008869031,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"a20f00ad2b38ff8ed10e8e8785936128e63042b8","before":"8fa1cb9d36b873167db53ed1e88c856c159f87c3","commits":[{"sha":"ef8e8905e4eb21c2fee64024019ca20d7458f1fd","author":{"email":"603b29269b139c911d347072247c7f872585d629@users.noreply.github.com","name":"Juanvi Martínez"},"message":"Update ParallaxListView.java\n\nI've added a footer view to my ParallaxListView this way:\r\n```\r\nView footerView = getLayoutInflater().inflate(R.layout.listview_footer, null);\r\nlistview.addFooterView(footerView);\r\n```\r\nThe listview_footer.xml file looks like this:\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:orientation=\"vertical\" android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\">\r\n\r\n    <TextView\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:gravity=\"center\"\r\n        android:layout_margin=\"@dimen/activity_horizontal_margin\"\r\n        android:textSize=\"16sp\"\r\n        android:text=\"@string/no_more_results\"/>\r\n</RelativeLayout>\r\n```\r\nAnd when scrolling and reaching the bottom of the listview I get the following crash:\r\n```\r\nRuntime: FATAL EXCEPTION: main\r\nProcess: my.app.android, PID: 20218\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'void com.yayandroid.parallaxlistview.ParallaxViewHolder.animateImage()' on a null object reference\r\nat com.yayandroid.parallaxlistview.ParallaxListView$1.onScroll(ParallaxListView.java:45)\r\nat android.widget.AbsListView.invokeOnItemScrollListener(AbsListView.java:1565)\r\nat android.widget.AbsListView.trackMotionScroll(AbsListView.java:5446)\r\nat android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4959)\r\nat android.view.Choreographer$CallbackRecord.run(Choreographer.java:792)\r\nat android.view.Choreographer.doCallbacks(Choreographer.java:596)\r\nat android.view.Choreographer.doFrame(Choreographer.java:556)\r\nat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:778)\r\nat android.os.Handler.handleCallback(Handler.java:739)\r\nat android.os.Handler.dispatchMessage(Handler.java:95)\r\nat android.os.Looper.loop(Looper.java:155)\r\nat android.app.ActivityThread.main(ActivityThread.java:5696)\r\nat java.lang.reflect.Method.invoke(Native Method)\r\nat java.lang.reflect.Method.invoke(Method.java:372)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)\r\n```\r\n\r\nI've just solved it adding an if statement in ParallaxListView.java:45. From:\r\n`((ParallaxViewHolder) view.getChildAt(i).getTag()).animateImage();\r\n`to:\r\n```\r\nif(view.getChildAt(i).getTag() != null)\r\n    ((ParallaxViewHolder) view.getChildAt(i).getTag()).animateImage();\r\n```","distinct":true,"url":"https://api.github.com/repos/yayaa/ParallaxListView/commits/ef8e8905e4eb21c2fee64024019ca20d7458f1fd"},{"sha":"a20f00ad2b38ff8ed10e8e8785936128e63042b8","author":{"email":"660ba287f28c9b007c667830a0f3e897e4313e20@hotmail.com","name":"Yahya Bayramoğlu"},"message":"Merge pull request #2 from juanvimartinez/patch-1\n\nTag control in ParallaxListView","distinct":true,"url":"https://api.github.com/repos/yayaa/ParallaxListView/commits/a20f00ad2b38ff8ed10e8e8785936128e63042b8"}]}