From b8177e4022fbf5055ef2e7ef0f19b5f41a2b21e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Sat, 9 Nov 2024 23:26:50 +0100 Subject: [PATCH] Update threads.js --- src/threads.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/threads.js b/src/threads.js index eb70eb4c3..015fc3447 100644 --- a/src/threads.js +++ b/src/threads.js @@ -1753,7 +1753,9 @@ Process.prototype.doSetSlot = function(name, value) { subslots = slot.inputs(); value.itemsArray().forEach((item, i) => { if (subslots[i] instanceof InputSlotMorph) { - subslots[i].setContents(item.toString()); + subslots[i].setContents( + isNil(item) ? '' : item.toString() + ); } else if (subslots[i] instanceof BooleanSlotMorph) { subslots[i].setContents(item); }