]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerSTU.cxx
Coverity corrections
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerSTU.cxx
index 943aa6dba74d0747e8bcd374901b5145780d393b..405c07ccfab42f5f3ac03da4b76c42e65df37dce 100644 (file)
@@ -98,9 +98,11 @@ void AliEMCALTriggerSTU::Build( TString& str, Int_t iTRU, Int_t** M, const TVect
        {
                AliError("Operation not allowed: STU won't be configured properly!");
        }
-       
-       for (Int_t i=0; i<rSize->X(); i++)
-               for (Int_t j=0; j<rSize->Y(); j++) v[i + ix][j + iy * 4] = M[i][j];
+  
+  if(v){       
+    for (Int_t i=0; i<rSize->X(); i++)
+      for (Int_t j=0; j<rSize->Y(); j++) v[i + ix][j + iy * 4] = M[i][j];
+  }
 }
 
 //_______________