Index: XmlTools2/trunk/readme.txt
===================================================================
--- XmlTools2/trunk/readme.txt	(revision 980)
+++ XmlTools2/trunk/readme.txt	(revision 997)
@@ -1,5 +1,5 @@
 Readme.txt
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-XmlTools v2.0a
+XmlTools v2.0b
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
@@ -62,4 +62,8 @@
 Change Log:
 ----------------------------------
+2.0b, 25-04-2014
+-Minor code fixes (use of singleton pattern)
+-Fixed segmentation fault when providing a non-existing element name in patch files operations
+----------------------------------
 2.0a, 02-03-2014
 -Added multithreading support for @CUSTOM_CODE (performance may increase over 3 times in a quadcore)
Index: XmlTools2/trunk/xmlpatch.cpp
===================================================================
--- XmlTools2/trunk/xmlpatch.cpp	(revision 980)
+++ XmlTools2/trunk/xmlpatch.cpp	(revision 997)
@@ -77,5 +77,5 @@
         }
 
-        if(nodesToInsertion[0].type()==pugi::node_null){
+        if(nodesToInsertion.isEmpty() || nodesToInsertion[0].type()==pugi::node_null){
 
             QString errMessage;
@@ -138,5 +138,5 @@
         }
 
-        if(nodesToDeletion[0].type()==pugi::node_null){
+        if(nodesToDeletion.isEmpty() || nodesToDeletion[0].type()==pugi::node_null){
 
             QString errMessage;
