Fix coverity defect
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Sep 2010 09:27:28 +0000 (09:27 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Sep 2010 09:27:28 +0000 (09:27 +0000)
TRD/AliTRD.cxx

index a2591e8..38fd28d 100644 (file)
@@ -619,11 +619,12 @@ Bool_t AliTRD::Raw2SDigits(AliRawReader *rawReader)
 
   // Create the s-digits manager
   AliTRDdigitsManager *sdigitsManager = new AliTRDdigitsManager();
-  sdigitsManager->SetSDigits(kTRUE);
-  sdigitsManager->CreateArrays();
 
   if (sdigitsManager) {
 
+    sdigitsManager->SetSDigits(kTRUE);
+    sdigitsManager->CreateArrays();
+
     // Convert the digits into s-digits
     digitizer.Digits2SDigits(digitsManager,sdigitsManager);