From: Nathaniel Wesley Filardo Date: Mon, 30 Jan 2017 20:09:40 +0000 (-0500) Subject: examples/lamp/lamp-remote: don't call nil on malfored message X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=68f9ad30d8b4fb8d4fac4c0e4701fcb9e508929b;p=acmetensortoys-esp-lua_lamp examples/lamp/lamp-remote: don't call nil on malfored message --- diff --git a/lamp-remote.lua b/lamp-remote.lua index e780a12..3a59a61 100644 --- a/lamp-remote.lua +++ b/lamp-remote.lua @@ -54,6 +54,6 @@ return function(msg) -- "new"). local c,as for c,as in msg:gmatch("(%w*)%s*([^;]*);%s*") do - if c then vt[c](as) end + if c and vt[c] then vt[c](as) end end end