Salome HOME
Merge branch 'omu/update_doc_77'
[modules/yacs.git] / src / yacsloader / propertyParsers.cxx
index 254211cb67a602b889e08f861897d943223d09cc..c3a059ae75c6ebba830a39e923e33a656e17b6f4 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2015  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,6 +26,8 @@ namespace YACS
 
   void propertytypeParser::buildAttr(const XML_Char** attr)
     {
+      if (!attr)
+        return;
       required("name",attr);
       required("value",attr);
       for (int i = 0; attr[i]; i += 2)