From 1f8eabf588ee0dacbc6d08d38b6b30ea85677664 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 13 Jan 2019 10:07:39 +1200 Subject: [PATCH] Fixed little bug with UDP --- desktop/sources/scripts/listener.js | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/sources/scripts/listener.js b/desktop/sources/scripts/listener.js index d68cc2f..6df0893 100644 --- a/desktop/sources/scripts/listener.js +++ b/desktop/sources/scripts/listener.js @@ -18,6 +18,7 @@ function Listener (dotgrid) { } function operate (data) { + if(!data){ return } if(!dotgrid.tool.layers[data.layer]){ return } dotgrid.tool.index = data.layer dotgrid.tool.addSegment(data.type, [data.from, data.to])