catch null ref in getScrollPosition