From 7231f37fef152884898e2e8287bb629a3a271565 Mon Sep 17 00:00:00 2001 From: user <user@user-ThinkPad-X60.(none)> Date: Sat, 2 May 2015 00:50:15 -0400 Subject: [PATCH] check for null with xlet highlighting --- pd/nw/pdgui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index 50ba06506..9b1b36811 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -1979,7 +1979,10 @@ function gui_configure_io(cid, tag, is_iemgui, is_signal, width) { function gui_highlight_io(cid, tag) { var xlet = get_item(cid, tag); - xlet.classList.add('xlet_selected'); + // must check for null (see gui_configure_io) + if (xlet !== null) { + xlet.classList.add('xlet_selected'); + } } function gui_message_drawborder(cid,tag,width,height) { -- GitLab