Salome HOME
Merge branch 'omu/update_doc_77'
[modules/yacs.git] / src / yacsloader / inlineParsers.hxx
index 9d6c25454c2d7ea8822a751d5d225c08fc24b845..8d4f653163c3fb0845d24389195064f3170a3160 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2012  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
@@ -66,6 +66,8 @@ struct inlinetypeParser:public nodetypeParser<T>
     }
   virtual void buildAttr(const XML_Char** attr)
     {
+      if (!attr)
+        return;
       this->required("name",attr);
       for (int i = 0; attr[i]; i += 2) 
       {