Issue 31885  —   structToXml/schema crashes when schema parameter is empty

Status:   Planned for resolution in 10.4.01

Solution available in patch(es):      10.3.02.020    9.7.05.033

Description:

 Summary:
 In case the schema parameter is empty then then this can cause a crash when
 trying to convert a Struct to XML using structToXML/schema.

 Environment:
 +Uniface:
 * Version 9.5.01 - E104 (and higher)

 +Operating System:
 * OS independent

 +Database:
 * DBMS independent

 Symptoms:
 The structToXML/schema instruction requires a schema parameter that can be a
 file name or URL, an indexed list of schema file names or URLs, or the schema
 document itself. If the schema parameter is empty then trying to convert a
 Struct to XML using structToXML/schema then this will cause a crash (instead of
 reporting an error).

 Conider the following code:

 ;variables
 ; struct vStruct
 ; string vXml, vSchema
 ;endvariables
 vSchema = ""
 structtoxml/schema vXml, vStruct, vSchema

 When this code is executed then Unfiace will crash.

Workaround:

 Always make sure that the schema parameter is not empty.

Notes: