]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawRootdDB.cxx
Fix for #88591 Request to commit/port fix in AliRawReaderChain (setter instead of...
[u/mrichter/AliRoot.git] / RAW / AliRawRootdDB.cxx
index b8308a874c5e133da7d2e42932ee15f6de97db7d..74102545bd9fd6eab5cb48edffb1a62ddc21837a 100644 (file)
@@ -31,7 +31,7 @@ ClassImp(AliRawRootdDB)
 
 
 //______________________________________________________________________________
-AliRawRootdDB::AliRawRootdDB(AliRawEvent *event,
+AliRawRootdDB::AliRawRootdDB(AliRawEventV2 *event,
                             AliESDEvent *esd,
                             Int_t compress,
                             const char* fileName,Int_t basketsize)
@@ -99,8 +99,9 @@ Long64_t AliRawRootdDB::Close()
 
    // Write the tree.
    Bool_t error = kFALSE;
-   if (fTree->Write() == 0)
-     error = kTRUE;
+   if (fTree)
+     if (fTree->Write() == 0)
+       error = kTRUE;
    if (fESDTree)
      if (fESDTree->Write() == 0)
        error = kTRUE;
@@ -108,6 +109,8 @@ Long64_t AliRawRootdDB::Close()
    // Close DB, this also deletes the fTree
    fRawDB->Close();
 
+   fTree = NULL;
+
    Long64_t filesize = fRawDB->GetEND();
 
 #if 0