Fix NPE and other small issues with the new image view

This commit is contained in:
Joseph Schorr 2015-03-24 19:28:24 -04:00
parent 3d44416016
commit 0d98776d54
4 changed files with 18 additions and 6 deletions

View file

@ -1157,8 +1157,11 @@ FileTreeBase.prototype.populateAndDraw_ = function() {
}
this.root_ = this.nodeMap_[''];
this.root_.x0 = 0;
this.root_.y0 = 0;
if (this.root_) {
this.root_.x0 = 0;
this.root_.y0 = 0;
}
this.toggle_(this.root_);
this.update_(this.root_);
};