etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

Nullpointer on init of grid #84

Open edwinhermkens opened 10 years ago

edwinhermkens commented 10 years ago

I've a normally working gridview implementation with endless scroll and pull to refresh. Strangly sometimes the app crashes on startup with the stacktrace below. I used both 1.03 an 1.04 but it didn't make any change. Anyone familiar with this?

stacktrace:

java.lang.NullPointerException
        at com.etsy.android.grid.ExtendableListView.setupChild(ExtendableListView.java:1425)
        at com.etsy.android.grid.ExtendableListView.makeAndAddView(ExtendableListView.java:1404)
        at com.etsy.android.grid.ExtendableListView.fillSpecific(ExtendableListView.java:1351)
        at com.etsy.android.grid.ExtendableListView.layoutChildren(ExtendableListView.java:592)
        at com.etsy.android.grid.StaggeredGridView.layoutChildren(StaggeredGridView.java:354)
        at com.etsy.android.grid.ExtendableListView.onLayout(ExtendableListView.java:513)

.... and so on .... at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method)

jaboston commented 9 years ago

has anyone tried solving this?