]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQAManager.cxx
coverity 11209
[u/mrichter/AliRoot.git] / STEER / AliQAManager.cxx
index e1d7a6b67741892a02575e7fa773467e347fcc0b..1ce14299097d8d22e0dcc29b0cb0972583bc0f24 100644 (file)
@@ -375,8 +375,10 @@ TCanvas ** AliQAManager::GetImage(Char_t * detName)
   // retrieves QA Image for the given detector
   TCanvas ** rv = NULL ; 
   Int_t detIndex = AliQAv1::GetDetIndex(detName) ; 
-  AliQACheckerBase * qac = AliQAChecker::Instance()->GetDetQAChecker(detIndex) ; 
-  rv = qac->GetImage() ;
+  if ( detIndex != AliQAv1::kNULLDET) {
+    AliQACheckerBase * qac = AliQAChecker::Instance()->GetDetQAChecker(detIndex) ; 
+    rv = qac->GetImage() ;
+  }
   return rv ; 
 }