JS NPE fix

This commit is contained in:
Joseph Schorr 2015-02-24 13:37:02 -05:00
parent 204f58d95b
commit 13e362a1df

View file

@ -521,6 +521,11 @@ ImageHistoryTree.prototype.pruneUnreferenced_ = function(node) {
}
node.children = surviving_children;
}
if (!node.tags) {
return node.children.length == 0;
}
return (node.children.length == 0 && node.tags.length == 0);
};