Fix NPE
This commit is contained in:
parent
cea8b03872
commit
9254cda0db
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ ImageHistoryTree.prototype.determineMaximumHeight_ = function(node) {
|
||||||
* compact.
|
* compact.
|
||||||
*/
|
*/
|
||||||
ImageHistoryTree.prototype.collapseNodes_ = function(node) {
|
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.
|
// Keep searching downward until we find a node with more than a single child.
|
||||||
var current = node;
|
var current = node;
|
||||||
var previous = node;
|
var previous = node;
|
||||||
|
|
Reference in a new issue