DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4869>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4869

Static DOMStrings wont initialize from char data

           Summary: Static DOMStrings wont initialize from char data
           Product: Xerces-C++
           Version: 1.5.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Static DOMString (const char*) will call getDomConverter(),
which crashes in case XMLPlatformUtils::fgTransService
is not initialized by XMLPlatformUtils::Initialize().
It is usually hard to assure that the last one is called before
of all constructors, if even possible.

proposed change:

XMLLCPTranscoder*  getDomConverter()
{
    if (!gDomConverter)
    {
//to add---->
        if(!XMLPlatformUtils::fgTransService)
            XMLPlatformUtils::Initialize();
//      <---------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to