Fix possible NPE
This commit is contained in:
parent
f24a10839c
commit
9c560e8d7f
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue