NPE fixes
This commit is contained in:
parent
86dfca2e3e
commit
f938f3fa43
3 changed files with 7 additions and 2 deletions
|
@ -262,6 +262,9 @@ ImageHistoryTree.prototype.draw = function(container) {
|
|||
|
||||
// Update the dimensions of the tree.
|
||||
var dimensions = this.updateDimensions_();
|
||||
if (!dimensions) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// Populate the tree.
|
||||
this.root_.x0 = dimensions.cw / 2;
|
||||
|
|
Reference in a new issue