This commit is contained in:
Joseph Schorr 2015-03-18 13:43:57 -04:00
parent cea8b03872
commit 9254cda0db

View file

@ -563,7 +563,7 @@ ImageHistoryTree.prototype.determineMaximumHeight_ = function(node) {
* compact.
*/
ImageHistoryTree.prototype.collapseNodes_ = function(node) {
if (node.children.length == 1) {
if (node.children && node.children.length == 1) {
// Keep searching downward until we find a node with more than a single child.
var current = node;
var previous = node;