JS NPE fix
This commit is contained in:
parent
204f58d95b
commit
13e362a1df
1 changed files with 5 additions and 0 deletions
|
@ -521,6 +521,11 @@ ImageHistoryTree.prototype.pruneUnreferenced_ = function(node) {
|
||||||
}
|
}
|
||||||
node.children = surviving_children;
|
node.children = surviving_children;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!node.tags) {
|
||||||
|
return node.children.length == 0;
|
||||||
|
}
|
||||||
|
|
||||||
return (node.children.length == 0 && node.tags.length == 0);
|
return (node.children.length == 0 && node.tags.length == 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue