[yoda-svn] r566 - trunk/src

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Mar 4 17:55:29 GMT 2013


Author: buckley
Date: Mon Mar  4 17:55:28 2013
New Revision: 566

Log:
Protect the AIDA XML parsing against XML comments (which cannot be cast to Element)

Modified:
   trunk/src/ReaderAIDA.cc

Modified: trunk/src/ReaderAIDA.cc
==============================================================================
--- trunk/src/ReaderAIDA.cc	Mon Mar  4 16:54:17 2013	(r565)
+++ trunk/src/ReaderAIDA.cc	Mon Mar  4 17:55:28 2013	(r566)
@@ -32,7 +32,7 @@
       if (!aidaN) throw ReadError("Couldn't get <aida> root element");
       for (const TiXmlNode* dpsN = aidaN->FirstChild("dataPointSet"); dpsN; dpsN = dpsN->NextSibling()) {
         const TiXmlElement* dpsE = dpsN->ToElement();
-        assert(dpsE != 0);
+        if (dpsE == 0) continue;
         const string plotpath = dpsE->Attribute("path");
         const string plotname = dpsE->Attribute("name");
 


More information about the yoda-svn mailing list