From 7c18b33f99c193a9a50c52a5bbfc4cebe35b9457 Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Mon, 30 Jan 2017 14:32:32 -0500 Subject: [PATCH] Continue import if opcode is not found during SB2 import. Resolves GH-413 --- src/import/sb2import.js | 1 + 1 file changed, 1 insertion(+) 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;