From 905570633363f904702375a270fba1385caa8dbe Mon Sep 17 00:00:00 2001 From: Kreg Hanning Date: Mon, 4 Jun 2018 15:22:12 -0400 Subject: [PATCH] Add check for invalid symbol --- src/extensions/scratch3_microbit/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extensions/scratch3_microbit/index.js b/src/extensions/scratch3_microbit/index.js index 5400ab362..3dc801d70 100644 --- a/src/extensions/scratch3_microbit/index.js +++ b/src/extensions/scratch3_microbit/index.js @@ -560,6 +560,7 @@ class Scratch3MicroBitBlocks { */ displaySymbol (args) { const hex = symbols2hex[args.SYMBOL]; + if (!hex) return; const output = new Uint8Array(6); output[0] = BLECommand.CMD_DISPLAY_LED; output[1] = (hex >> 20) & 0x1F;