]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 9c408cd3bb69a5f02333f9f9966fc224a201a7f9..369d4cb28575f0a891c63ac43fb94dad195f9660 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];