Handle possibly null hresp["CONTENT"]

Fixes #2116
This commit is contained in:
emanuele-f 2018-10-22 20:05:46 +02:00
parent be1bdfff57
commit c7846f8c4b

View file

@ -891,7 +891,7 @@ local function analyzeSSDP(ssdp)
local services = { }
local friendlyName = ""
if(hresp ~= nil) then
if(hresp ~= nil) and (hresp["CONTENT"] ~= nil) then
local xml = newParser()
local r = xml:ParseXmlText(hresp["CONTENT"])