You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2005/08/29 09:53:25 UTC

[jira] Resolved: (XERCESC-1484) in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.

     [ http://issues.apache.org/jira/browse/XERCESC-1484?page=all ]
     
Alberto Massari resolved XERCESC-1484:
--------------------------------------

    Resolution: Won't Fix

It's a bug, but it's in the deprecated DOM, that is not maintained anymore. A workaround for this behavior is to first create a DOM_Document, then invoke createDocumentType on it.


> in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.
> ------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1484
>          URL: http://issues.apache.org/jira/browse/XERCESC-1484
>      Project: Xerces-C++
>         Type: Bug
>   Components: DOM
>     Versions: 2.6.0
>  Environment: win32, vc7,
>     Reporter: Caochongyu
>     Priority: Blocker

>
> I createDocumentType, then call DOM_Node::cloneNode on it. 
> it crashes in 
> NamedNodeMapImpl::cloneMap(NodeImpl *ownerNod).
> {
>   MemoryManager* manager = ownerNod->getDocument()->getMemoryManager();
> where ownerNod->getDocument() returns NULL.
> it could be NULL, eh?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org