Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (14 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/persistency/gdml/src/G4GDMLReadSetup.cc

    r1337 r1347  
    2424// ********************************************************************
    2525//
    26 // $Id: G4GDMLReadSetup.cc,v 1.10 2009/03/24 15:47:33 gcosmo Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4GDMLReadSetup.cc,v 1.11 2010/10/14 16:19:40 gcosmo Exp $
     27// GEANT4 tag $Name: gdml-V09-03-09 $
    2828//
    2929// class G4GDMLReadSetup Implementation
     
    7979      const xercesc::DOMAttr* const attribute
    8080            = dynamic_cast<xercesc::DOMAttr*>(attribute_node);   
     81      if (!attribute)
     82      {
     83        G4Exception("G4GDMLReadSetup::SetupRead()",
     84                    "InvalidRead", FatalException, "No attribute found!");
     85        return;
     86      }
    8187      const G4String attName  = Transcode(attribute->getName());
    8288      const G4String attValue = Transcode(attribute->getValue());
     
    9298      const xercesc::DOMElement* const child
    9399            = dynamic_cast<xercesc::DOMElement*>(iter);
     100      if (!child)
     101      {
     102        G4Exception("G4GDMLReadSetup::SetupRead()",
     103                    "InvalidRead", FatalException, "No child found!");
     104        return;
     105      }
    94106      const G4String tag = Transcode(child->getTagName());
    95107
Note: See TracChangeset for help on using the changeset viewer.