Error when scroll view is removed: attempt to call method 'insert' (a nil value)
Benzeliden opened this issue · 0 comments
Benzeliden commented
Crash log from device:
/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_momentumScrolling.lua:819: attempt to call method 'insert' (a nil value)
stack traceback:
/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_momentumScrolling.lua:819: in function 'createScrollBar'
/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_scrollview.lua:306: in function 'listener'
/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:212: in function 'method'
/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function </Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:190>
Happens if you call scroll:setScrollHeight (which set up a 2ms timer for rendering a scroll bar) and scroll view got removed just before timer triggered