From 9c560e8d7f2f8d79b3fe07c430fda2fea75ebd15 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 18 Aug 2014 13:30:47 -0400 Subject: [PATCH] Fix possible NPE --- static/js/graphing.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/graphing.js b/static/js/graphing.js index 32eff8635..b18e5ddbe 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -148,6 +148,8 @@ ImageHistoryTree.prototype.updateDimensions_ = function() { var ch = dimensions.ch; // Set the height of the container so that it never goes offscreen. + if (!$('#' + container).removeOverscroll) { return; } + $('#' + container).removeOverscroll(); var viewportHeight = $(window).height(); var boundingBox = document.getElementById(container).getBoundingClientRect();