table view crash

Hi, 

I’ve created a module for leaderboards based on dreamlo and I use tableview widget for displaying scores.

One time I got an error, but I don’t have access to widget_tableview.lua so it’s difficult to find what caused the problem.

Can someone from Corona staff check what kind of variable is passed in that line?

Thanks.

GT-I9195: ERROR: Runtime error

GT-I9195: /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_tableview.lua:1589: attempt to index field ‘?’ (a nil value)

GT-I9195: at (Unknown Function) (/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_tableview.lua:1589)

GT-I9195: at (Unknown Function) ((tail call))

GT-I9195: at (Unknown Function) (?:0)

Hi nowicki,
Can u please post a snippet at line 1589
.It seems you are referring a nill value.

-Assif
 

You are likely trying to scrollTo a row that doesn’t exist.

Rob

Thanks, I’ve made some adjustments so it won’t try to scroll if the value from server is broken (nil).

Hi nowicki,
Can u please post a snippet at line 1589
.It seems you are referring a nill value.

-Assif
 

You are likely trying to scrollTo a row that doesn’t exist.

Rob

Thanks, I’ve made some adjustments so it won’t try to scroll if the value from server is broken (nil).