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: [EMAIL PROTECTED]                                  |
  |  Reported By: [EMAIL PROTECTED]                                               |
--- 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: [EMAIL PROTECTED]                                  |
  |  Reported By: [EMAIL PROTECTED]                                               |
***************
*** 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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to