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

tools.js: correctIMGTPositionsForInsertions: handle special undefined case

parent 7bd4ff00
......@@ -56,6 +56,8 @@ function endsWith(sequence, end) {
* rather than the corrected one.
*/
function correctIMGTPositionsForInsertions(data) {
if (typeof data == 'undefined')
return;
if (typeof data['V-REGION identity % (with ins/del events)'] != 'undefined'
&& data['V-REGION identity % (with ins/del events)'].length > 0
&& typeof data['V-REGION end'] != 'undefined') {
......
Supports Markdown
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