Salome HOME
Improve test stability.
[modules/yacs.git] / src / yacsloader / nodeParsers.hxx
index 2c5da31c73103756ec4ae22df1bf63b130c148ec..6449b592afaba3c3ca3d4237f14ddb972634f4fb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2021  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
@@ -71,6 +71,8 @@ struct nodetypeParser: parser
     }
   virtual void buildAttr(const XML_Char** attr)
     {
+      if (!attr)
+        return;
       required("name",attr);
       required("type",attr);
       for (int i = 0; attr[i]; i += 2)