Fix null pointer dereference planted in PR287 and reported in PR288
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 46f5f7f..ef00f13 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -520,6 +520,8 @@
     char* const start = p;

     p = XMLUtil::SkipWhiteSpace( p );

     if( !*p ) {

+        *node = 0;

+        TIXMLASSERT( p );

         return p;

     }

 

@@ -848,6 +850,9 @@
         XMLNode* node = 0;

 

         p = _document->Identify( p, &node );

+        if ( node == 0 ) {

+            break;

+        }

 

         StrPair endTag;

         p = node->ParseDeep( p, &endTag );