|
Boost-Commit : |
From: seefeld_at_[hidden]
Date: 2008-02-27 08:38:46
Author: stefan
Date: 2008-02-27 08:38:45 EST (Wed, 27 Feb 2008)
New Revision: 43420
URL: http://svn.boost.org/trac/boost/changeset/43420
Log:
Handle NULL nodeset.
Text files modified:
sandbox/xml/boost/xml/dom/node_set.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: sandbox/xml/boost/xml/dom/node_set.hpp
==============================================================================
--- sandbox/xml/boost/xml/dom/node_set.hpp (original)
+++ sandbox/xml/boost/xml/dom/node_set.hpp 2008-02-27 08:38:45 EST (Wed, 27 Feb 2008)
@@ -20,7 +20,7 @@
~node_set() { xmlXPathFreeNodeSet(this->impl());}
- size_t size() const { return this->impl()->nodeNr;}
+ size_t size() const { return this->impl() ? this->impl()->nodeNr : 0;}
node_ptr<node<S> > operator[] (size_t i)
{
return detail::ptr_factory<node<S> >(this->impl()->nodeTab[i]);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk