Commit bf12c5b1 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

segmenter.js: Make sure identity is well defined before accessing it

The value may not be defined when the sequence doesn't
have insertions.
parent 89f8b580
......@@ -570,7 +570,7 @@ Segment.prototype = {
if (clone.seg.imgt!=null){
identity = clone.seg.imgt["V-REGION identity % (with ins/del events)"]
if (identity.length == 0)
if (typeof identity != 'undefined' && identity.length == 0)
identity = clone.seg.imgt["V-REGION identity %"]
var identityRate = parseFloat(identity)
if (identityRate != NaN) {
......
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