X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fyacsloader%2FlinkParsers.hxx;h=97e1aaa046554c25fb719aa839f752f3edd81b20;hb=c9208a8ef7f32a620d9650908588320ff159a167;hp=ca0647feafa2bbd15e926e5c73d4986d279f1383;hpb=f3b2b68ffecc5033287a7a255c8507f8989fb87f;p=modules%2Fyacs.git diff --git a/src/yacsloader/linkParsers.hxx b/src/yacsloader/linkParsers.hxx index ca0647fea..97e1aaa04 100644 --- a/src/yacsloader/linkParsers.hxx +++ b/src/yacsloader/linkParsers.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2006-2013 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 // 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 @@ -112,6 +112,8 @@ struct linktypeParser: controltypeParser } virtual void buildAttr(const XML_Char** attr) { + if (!attr) + return; for (int i = 0; attr[i]; i += 2) { if((std::string(attr[i]) == "control")