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 bu...@apache.org on 2001/05/10 00:04:25 UTC
[Bug 1395] Changed - DOM_NamedNodeMap::getLength() crashes
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1395
*** shadow/1395 Thu Apr 19 07:23:24 2001
--- shadow/1395.tmp.14332 Wed May 9 15:04:25 2001
***************
*** 2,11 ****
| DOM_NamedNodeMap::getLength() crashes |
+----------------------------------------------------------------------------+
| Bug #: 1395 Product: Xerces-C |
! | Status: NEW Version: 1.4 |
! | Resolution: Platform: Sun |
| Severity: Normal OS/Version: Solaris |
! | Priority: Component: DOM |
+----------------------------------------------------------------------------+
| Assigned To: xerces-c-dev@xml.apache.org |
| Reported By: jmf@abysal.com |
--- 2,11 ----
| DOM_NamedNodeMap::getLength() crashes |
+----------------------------------------------------------------------------+
| Bug #: 1395 Product: Xerces-C |
! | Status: RESOLVED Version: 1.4 |
! | Resolution: WONTFIX Platform: Sun |
| Severity: Normal OS/Version: Solaris |
! | Priority: High Component: DOM |
+----------------------------------------------------------------------------+
| Assigned To: xerces-c-dev@xml.apache.org |
| Reported By: jmf@abysal.com |
***************
*** 27,30 ****
But i think this is not the more efficient way to do this, and is a little
problem easily resolvable.
! Thanks and best regards.
--- 27,40 ----
But i think this is not the more efficient way to do this, and is a little
problem easily resolvable.
! Thanks and best regards.
!
! ------- Additional Comments From lehors@apache.org 2001-05-09 15:04 -------
! The error comes from a misunderstanding of how the API works.
! DOM_NamedNodeMap, like any other DOM_ object, is just a smart pointer. Until it
! is actually assigned to something else it is null. It is therefore no surprise
! that dereferencing it leads to an exception.
! So, the solution is: Don't do that! :-)
! Note that, we could indeed change all the methods in the smart pointer classes
! to check on whether they are null before dereferencing them but this would
! impact performance for little gain IMO.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org