DVCSMP-1521 NPE in Bose (Connect)

-NPE would occur if parsed LAN message is missing content-type header
This commit is contained in:
Lars Finander
2016-02-25 11:09:31 -08:00
parent 9e37a37991
commit e255316474

View File

@@ -353,7 +353,7 @@ def onLocation(evt) {
}
else if (
lanEvent.headers && lanEvent.body &&
lanEvent.headers."content-type".contains("xml")
lanEvent.headers."content-type"?.contains("xml")
)
{
def parsers = getParsers()