Commit da25275d authored by marc duez's avatar marc duez

model.js: check if clone exist before getSize()

parent 41e339cb
......@@ -836,7 +836,8 @@ changeAlleleNotation: function(alleleNotation) {
biggestClone = j;
}
}
if (this.clone(biggestClone).getSize(t) > this.max_size) this.max_size = this.clone(biggestClone).getSize(t)
if (this.clone(biggestClone) && this.clone(biggestClone).getSize(t) > this.max_size)
this.max_size = this.clone(biggestClone).getSize(t)
}
//*2 pour avoir une marge minimum d'un demi-log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment