Salome HOME
Improve test stability.
[modules/yacs.git] / src / yacsloader / codeParsers.hxx
index ef2b44a91907ec669860421353e935cb8204012e..5663a1530ee1ad62217a8390f6cf0560cea6c11f 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2012  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
 // 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
@@ -75,6 +75,8 @@ struct functypeParser: codetypeParser
   static functypeParser funcParser;
   virtual void buildAttr(const XML_Char** attr)
     {
+      if (!attr)
+        return;
       required("name",attr);
       for (int i = 0; attr[i]; i += 2) 
       {