Coverity 11375
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 07:49:34 +0000 (07:49 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 07:49:34 +0000 (07:49 +0000)
STEER/AliQAChecker.cxx

index 9c408cd..369d4cb 100644 (file)
@@ -106,7 +106,9 @@ AliQAChecker::~AliQAChecker()
   AliQACheckerBase * AliQAChecker::GetDetQAChecker(Int_t det)
 {
        // Gets the Quality Assurance checker for the detector specified by its name
-       
+
+  if (det<0 || det>=AliQAv1::kNDET) return NULL;
+
        if (fCheckers[det]) 
     return fCheckers[det];