From 037d2c368efff425d1041fef29d63d7de51ecc9f Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 1 Dec 2014 10:58:12 -0700 Subject: [PATCH] fix(scrollView): fix null pointer exception on scrollbar --- js/views/scrollView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/scrollView.js b/js/views/scrollView.js index 7fecb73b1f..37ca6f4b51 100644 --- a/js/views/scrollView.js +++ b/js/views/scrollView.js @@ -990,7 +990,7 @@ ionic.views.Scroll = ionic.views.View.inherit({ } if (height !== self.__indicatorY.size) { ionic.requestAnimationFrame(function(){ - self.__indicatorY.indicator.style.height = height + 'px'; + self.__indicatorY && (self.__indicatorY.indicator.style.height = height + 'px'); }); } self.__indicatorY.size = height;