Skip to content
Snippets Groups Projects
Commit 1c3b22cf authored by Tinny Ng's avatar Tinny Ng
Browse files

Assertion `size > 0' failure when cloning a node if the last attributes has...

Assertion `size > 0' failure when cloning a node if the last attributes has been removed.  Fixed by Khaled Noaman.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172490 13f79535-47bb-0310-9956-ffa450edef68
parent 70de637b
No related branches found
No related tags found
No related merge requests found
......@@ -435,7 +435,7 @@ void NamedNodeMapImpl::setOwnerDocument(DocumentImpl *doc) {
void NamedNodeMapImpl::cloneContent(NamedNodeMapImpl *srcmap) {
if ((srcmap != null) && (srcmap->nodes != null))
if ((srcmap != null) && (srcmap->nodes != null) && (srcmap->nodes->size() > 0))
{
if (nodes != null)
delete nodes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment