recyclerlistview icon indicating copy to clipboard operation
recyclerlistview copied to clipboard

TypeError: Cannot read property 'y' of undefined

Open Wqleonard opened this issue 2 years ago • 3 comments

11630488491_ picimage

Wqleonard avatar Sep 01 '21 09:09 Wqleonard

This error occurs when I run on an Android device, even if the array is empty

Wqleonard avatar Sep 01 '21 09:09 Wqleonard

happens when data is empty array

zhangciwu avatar Oct 28 '21 11:10 zhangciwu

In the function where you create your data provider, just check if the data array is empty. If it is, don't render the List.

felipevyg avatar Nov 09 '21 22:11 felipevyg