Merge pull request #414 from thisandagain/bugfix/413

Bugfix - Continue import if opcode is not found during SB2 import
This commit is contained in:
Andrew Sliwinski 2017-01-30 15:36:24 -05:00 committed by GitHub
commit fff63e3af2

View file

@ -193,6 +193,7 @@ var parseBlockList = function (blockList) {
for (var i = 0; i < blockList.length; i++) { for (var i = 0; i < blockList.length; i++) {
var block = blockList[i]; var block = blockList[i];
var parsedBlock = parseBlock(block); var parsedBlock = parseBlock(block);
if (typeof parsedBlock === 'undefined') continue;
if (previousBlock) { if (previousBlock) {
parsedBlock.parent = previousBlock.id; parsedBlock.parent = previousBlock.id;
previousBlock.next = parsedBlock.id; previousBlock.next = parsedBlock.id;