Print

Print


Commit in lcio/src/cpp/include/UTIL on MAIN
CellIDDecoder.h+5-21.8 -> 1.9
check for collection null pointer

lcio/src/cpp/include/UTIL
CellIDDecoder.h 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- CellIDDecoder.h	20 Jun 2006 16:44:32 -0000	1.8
+++ CellIDDecoder.h	8 Dec 2006 10:18:59 -0000	1.9
@@ -24,7 +24,7 @@
    *  See UTIL::BitField64 for a description of the encoding string. 
    * 
    *  @see BitField64
-   *  @version $Id: CellIDDecoder.h,v 1.8 2006/06/20 16:44:32 jeremy Exp $
+   *  @version $Id: CellIDDecoder.h,v 1.9 2006/12/08 10:18:59 gaede Exp $
    */
   template <class T> 
   class CellIDDecoder {
@@ -35,7 +35,10 @@
      */
     CellIDDecoder( const LCCollection* col ) : _oldHit(0) {
       
-      std::string initString = col->getParameters().getStringVal(  LCIO::CellIDEncoding ) ;
+      std::string initString("") ; 
+
+      if( col !=0 ) 
+	initString = col->getParameters().getStringVal(  LCIO::CellIDEncoding ) ;
       
       if( initString.size() == 0 ) {
 	
CVSspam 0.2.8