Fix potential NPE in graphing class
This commit is contained in:
parent
4e36be1a88
commit
dc8765b590
1 changed files with 4 additions and 0 deletions
|
@ -197,6 +197,10 @@ ImageHistoryTree.prototype.draw = function(container) {
|
||||||
.attr("class", "image-tree");
|
.attr("class", "image-tree");
|
||||||
|
|
||||||
var vis = rootSvg.append("svg:g");
|
var vis = rootSvg.append("svg:g");
|
||||||
|
if (!vis) {
|
||||||
|
this.container_ = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var formatComment = this.formatComment_;
|
var formatComment = this.formatComment_;
|
||||||
var formatTime = this.formatTime_;
|
var formatTime = this.formatTime_;
|
||||||
|
|
Reference in a new issue