Fix potential NPE in graphing class

This commit is contained in:
Joseph Schorr 2014-04-30 17:12:42 -04:00
parent 4e36be1a88
commit dc8765b590

View file

@ -197,6 +197,10 @@ ImageHistoryTree.prototype.draw = function(container) {
.attr("class", "image-tree");
var vis = rootSvg.append("svg:g");
if (!vis) {
this.container_ = null;
return;
}
var formatComment = this.formatComment_;
var formatTime = this.formatTime_;