Tableview widget misbehaving (still)

I thought this problem was fixed ages ago but…

/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget\_tableview.lua:1266: attempt to index field 'parent' (a nil value) stack traceback: at (Unknown Function) (/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget\_tableview.lua:1266) at (Unknown Function) ((tail call)) at ? (?:0) at (Unknown Function) (?:0)

I’ve checked the git and line 1266 is

if ( self.\_rows[table.maxn(self.\_rows) - 1].y ) then

which offers no help at all.

Note: on my onRowRender() function I am checking if event.row is a valid display object before processing the callback.

Not sure if related but insolved issues around updating rows that no longer exist when fast swiping by creating an object and inserting it into the row table, in a pcall statement, before adding further details. It works flawlessly

@anaqim, the problem still exits, that won’t resolve it, just hide it.

I stoped using tableview and I created an easy lite version of it using scrollview. tableviews are too slow and heavy coded.

still i don’t have errors from my old tableviews for a while now…

@sphere you can try this:

if self.\_rows and table.maxn(self.\_rows) and self.\_rows[table.maxn(self.\_rows) - 1] and ( self.\_rows[table.maxn(self.\_rows) - 1].y ) then

Not sure if related but insolved issues around updating rows that no longer exist when fast swiping by creating an object and inserting it into the row table, in a pcall statement, before adding further details. It works flawlessly

@anaqim, the problem still exits, that won’t resolve it, just hide it.

I stoped using tableview and I created an easy lite version of it using scrollview. tableviews are too slow and heavy coded.

still i don’t have errors from my old tableviews for a while now…

@sphere you can try this:

if self.\_rows and table.maxn(self.\_rows) and self.\_rows[table.maxn(self.\_rows) - 1] and ( self.\_rows[table.maxn(self.\_rows) - 1].y ) then