]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
examples/lamp/lamp-remote: don't call nil on malfored message
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 30 Jan 2017 20:09:40 +0000 (15:09 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 30 Jan 2017 20:09:40 +0000 (15:09 -0500)
lamp-remote.lua

index e780a127921d32a23d2e37b01961803cbbc677ad..3a59a61f916be3f66d069b5212f9ae81a0e9bd43 100644 (file)
@@ -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