From 31db570cd148e3569b065270127c59b45a4e4ca3 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Wed, 9 Oct 2019 11:16:26 -0700 Subject: [PATCH] Fix #2811 (#3205) (#3207) --- core/field.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/field.js b/core/field.js index ad7477830..a9d7b919c 100644 --- a/core/field.js +++ b/core/field.js @@ -557,8 +557,10 @@ Blockly.Field.prototype.updateColour = function() { * @protected */ Blockly.Field.prototype.render_ = function() { - this.textContent_.nodeValue = this.getDisplayText_(); - this.updateSize_(); + if (this.textContent_) { + this.textContent_.nodeValue = this.getDisplayText_(); + this.updateSize_(); + } }; /**