Salome HOME
map->list for InGates too.
[modules/yacs.git] / src / yacsloader / outputParsers.hxx
index 98f64d404c13548ece9e17de4623573363f060f6..8a3977b3c47c304f3b8d749d484bd82e5ce1e0aa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  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
@@ -59,6 +59,8 @@ struct outputdatatypeParser: parser
     }
   virtual void buildAttr(const XML_Char** attr)
     {
+      if (!attr)
+        return;
       DEBTRACE("outputdatatypeParser::buildAttr");
       required("name",attr);
       required("type",attr);
@@ -156,6 +158,8 @@ void outnodetypeParser<T>::onEnd(const char *el,parser* child)
 template <class T>
 void outnodetypeParser<T>::buildAttr(const XML_Char** attr)
     {
+      if (!attr)
+        return;
       DEBTRACE("outnodetypeParser::buildAttr");
       this->required("name",attr);
       for (int i = 0; attr[i]; i += 2)