From 44d683ec6ac69cd739fa4ca17b4c909e3f8f1b6e Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 25 Nov 2015 20:55:59 -0500 Subject: [PATCH] check for null when changing patch preset --- pd/nw/pdgui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index ef7df426f..2db66b476 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -3115,7 +3115,7 @@ exports.skin = (function () { preset = name; post("trying to set..."); for (w in patchwin) { - if (patchwin.hasOwnProperty(w)) { + if (patchwin.hasOwnProperty(w) && patchwin[w]) { apply(patchwin[w]); } } -- GitLab