NextSibling() segfault when called on the root node, so add a check
authorkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Tue, 27 Jan 2009 00:04:58 +0000 (00:04 +0000)
committerkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Tue, 27 Jan 2009 00:04:58 +0000 (00:04 +0000)
commit9b3825663e88360c57dfe66cee5330f8f80fb452
tree1991d9e6315ef6d9fea07e536f0dd67c93cc664b
parenta9846746dc7a55764591fcc273fd48c6049df962
NextSibling() segfault when called on the root node, so add a check
and retrung NULLT if the argument is ther root node. It's consistent with
the behaviour of calling FirstChild on a leaf node.

git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/XMLTree@65 3cdefd35-fc62-479d-8e8d-bae585ffb9ca
XMLTree.cpp