Skip to content

ArrayIndexOutOfBoundsException in preLayoutChildren() #52

@jenzz

Description

@jenzz

It looks like when the tops are copied into the bottom,
there is a mismatch in size between
the array src (mColumnTops) and the array dest (mColumnBottoms).

02-11 14:10:48.628  3518  6271 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: src.length=3 srcPos=0 dst.length=0 dstPos=0 length=3
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at java.lang.System.arraycopy(Native Method)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at com.etsy.android.grid.StaggeredGridView.preLayoutChildren(StaggeredGridView.java:341)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at com.etsy.android.grid.StaggeredGridView.layoutChildren(StaggeredGridView.java:326)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at com.etsy.android.grid.ExtendableListView.onLayout(ExtendableListView.java:507)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at com.etsy.android.grid.ExtendableListView.updateEmptyStatus(ExtendableListView.java:2040)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at com.etsy.android.grid.ExtendableListView.access$1000(ExtendableListView.java:59)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at com.etsy.android.grid.ExtendableListView$AdapterDataSetObserver.onChanged(ExtendableListView.java:2078)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
02-11 14:10:48.628  3518  6271 E AndroidRuntime:    at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions