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); }