bpsmith / tia

Toolkit for integration and analysis
BSD 3-Clause "New" or "Revised" License
404 stars 165 forks source link

XmlHelper.as_value() fails on null field #15

Open tomhosking opened 7 years ago

tomhosking commented 7 years ago

If a response message contains a field with an empty value, XmlHelper.as_value() can fail, for example throwing "Attempt to access an empty scalar element 'ASK'". I guess ele.isNull() should be checked before attempting to convert the field value to a python type?