Issue 32010 — structToXml crashes when xmlClass tag has no value.
Status: Planned for resolution in 10.4.01
Solution available in patch(es): 10.3.02.019 9.7.05.032
Summary: When converting a Struct to XML using the Proc statement structToXml a crash is occurring in case a xmlClass tag has no value (i.e. is empty). Environment: +Uniface: * Version 9.6.04 - X402 (and higher) +Operating System: * OS independent +Database: * DBMS independent Symptoms: Converting a Struct to XML using the Proc statement structToXml is causing a crash when the Struct includes a xmlClass tag that has no value (i.e. is empty). 1. The component CMP1 includes the following code in the Execute trigger variables struct vStruct string vXML endvariables vStruct = $newstruct vStruct->$tags->xmlClass="document" vStruct->root = $newstruct vStruct->root->$tags->xmlClass="" structToXml vXml, vStruct 4. The component CMP1 is compiled and tested => As soon as the structToXml instruction is executed Uniface will crash
Make sure that a value is assigned to any xmlClass tag in a Struct.