Salome HOME
Go on
[modules/yacs.git] / src / yacsloader / propertyParsers.cxx
index ccf95e8d36c5c878d304c7a33b1fff13e425f8f0..0ba421de230e39895a280f973b614934c269fb05 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2019  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
@@ -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)