From 182ec4656e24d3e979e2abbdcd3405ade3b0974f Mon Sep 17 00:00:00 2001 From: cat Date: Wed, 7 Oct 2015 10:42:19 +0200 Subject: [PATCH] LSP: bugfix for empty config files --- lsp/mist.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lsp/mist.js b/lsp/mist.js index a30f944f..1301dd0b 100644 --- a/lsp/mist.js +++ b/lsp/mist.js @@ -4198,8 +4198,13 @@ var mist = { if ('browse' in d) { mist.data.browse = d.browse; } if ('log' in d) { mist.data.log = d.log; } if ('streams' in d) { - if ((d.streams) && ('incomplete_list' in d.streams)) { - delete d.streams.incomplete_list; + if (d.streams) { + if ('incomplete_list' in d.streams) { + delete d.streams.incomplete_list; + } + } + else { + d.streams = {}; } mist.data.streams = d.streams; }