mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-04 14:23:08 +01:00
DVCSMP-1521 NPE in Bose (Connect)
-NPE would occur if parsed LAN message is missing content-type header
This commit is contained in:
@@ -353,7 +353,7 @@ def onLocation(evt) {
|
|||||||
}
|
}
|
||||||
else if (
|
else if (
|
||||||
lanEvent.headers && lanEvent.body &&
|
lanEvent.headers && lanEvent.body &&
|
||||||
lanEvent.headers."content-type".contains("xml")
|
lanEvent.headers."content-type"?.contains("xml")
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
def parsers = getParsers()
|
def parsers = getParsers()
|
||||||
|
|||||||
Reference in New Issue
Block a user