From 3fa971b6cffff5e609342d24632645e8c967dae4 Mon Sep 17 00:00:00 2001 From: Leonardo Alberto Souza Date: Tue, 27 Oct 2015 18:37:13 -0200 Subject: [PATCH] fix(scroll): prevent 'cannot read from undefined' exception --- js/angular/controller/scrollController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/controller/scrollController.js b/js/angular/controller/scrollController.js index 79e4f9ba1df..8e35d39b156 100644 --- a/js/angular/controller/scrollController.js +++ b/js/angular/controller/scrollController.js @@ -54,7 +54,7 @@ function($scope, if (!isDefined(scrollViewOptions.bouncing)) { ionic.Platform.ready(function() { - if (scrollView.options) { + if (scrollView && scrollView.options) { scrollView.options.bouncing = true; if (ionic.Platform.isAndroid()) { // No bouncing by default on Android