diff --git a/src/import/sb2import.js b/src/import/sb2import.js index 96009abb8..13983d569 100644 --- a/src/import/sb2import.js +++ b/src/import/sb2import.js @@ -193,6 +193,7 @@ var parseBlockList = function (blockList) { for (var i = 0; i < blockList.length; i++) { var block = blockList[i]; var parsedBlock = parseBlock(block); + if (typeof parsedBlock === 'undefined') continue; if (previousBlock) { parsedBlock.parent = previousBlock.id; previousBlock.next = parsedBlock.id;