Unlinked nodes assertions
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 3182c5a..99b5e92 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1994,6 +1994,7 @@
 

 void XMLDocument::MarkInUse(XMLNode* node)

 {

+	TIXMLASSERT(node);

 	TIXMLASSERT(node->_parent == 0);

 

 	for (int i = 0; i < _unlinked.Size(); ++i) {