Widget issues on Android

I get this error:

[lua]?:0: attempt to index field ‘_scrollBar’ (a nil value)[/lua]

when I call this:

[lua]tableView:insertRow[/lua]

It works fine in the Simulator and on iOS.

I think something is getting placed into the row that it doesn’t like.

Is there a way to tell the library to just ignore _scrollBar if it’s nil or something? I’m not sure what’s causing this or what to do about it. I’m using Corona Enterprise to build the APKs. Thanks. :slight_smile:

Does this happen when you run the WidgetDemo sample app?

Hi @mindgrub,

This could likely be because we’re making some improvements to the scrollbar element of the TableView and ScrollView in recent builds, and those may not apply to Enterprise builds. Please keep an eye out for recent and upcoming builds, as there will be continual widget updates and improvements on the way.

Best regards,

Brent

Thanks, Brent. I didn’t know where to start so your comment sent me in the right direction.

I tried Enterprise build 1166, a build filled with Widget 2.0 changes, and it didn’t work. So I tried build 1164, and it works perfectly.

I haven’t tried out the Widget Demo with an Enterprise build yet, but it might be something to look into. Anyway, thanks! :slight_smile:

Does this happen when you run the WidgetDemo sample app?

Hi @mindgrub,

This could likely be because we’re making some improvements to the scrollbar element of the TableView and ScrollView in recent builds, and those may not apply to Enterprise builds. Please keep an eye out for recent and upcoming builds, as there will be continual widget updates and improvements on the way.

Best regards,

Brent

Thanks, Brent. I didn’t know where to start so your comment sent me in the right direction.

I tried Enterprise build 1166, a build filled with Widget 2.0 changes, and it didn’t work. So I tried build 1164, and it works perfectly.

I haven’t tried out the Widget Demo with an Enterprise build yet, but it might be something to look into. Anyway, thanks! :slight_smile: