Message:
The following issue has been closed.
Resolver: Alberto Massari
Date: Mon, 4 Oct 2004 2:55 AM
The storage model for setUserData has changed, and the bug doesn't apply anymore
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-445
Summary: DocumentImpl::setUserData has invalid handling
Type: Bug
Status: Closed
Resolution: CANNOT REPRODUCE
Project: Xerces-C++
Components:
DOM
Versions:
1.7.0
Assignee:
Reporter: Rainer Prosi
Created: Tue, 7 May 2002 11:50 AM
Updated: Mon, 4 Oct 2004 2:55 AM
Environment: Operating System: Other
Platform: All
Description:
DocumentImpl::setUserData throws an exception when called with data=0 and
userData=0:
if (!userData && data)
userData = new RefHashTableOf<void>(29, false, new HashPtr());
if (!data && userData)
userData->removeKey((void*)n);
else // this is called if data=0 and userData=0
userData->put((void*)n,data);
fix:
if (!userData && data)
userData = new RefHashTableOf<void>(29, false, new HashPtr());
if (userData) // only modify if userData exists
{
if(!data)
userData->removeKey((void*)n);
else
userData->put((void*)n,data);
}
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]