Coverity fix of FORWARD NULL. Check for null pointer; if yes, AliFatal called.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Feb 2011 10:50:54 +0000 (10:50 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Feb 2011 10:50:54 +0000 (10:50 +0000)
PHOS/AliPHOSSDigitizer.cxx

index 9c6aaa9..fccd8ea 100644 (file)
@@ -217,6 +217,9 @@ void AliPHOSSDigitizer::Exec(Option_t *option)
   AliRunLoader* rl = AliRunLoader::GetRunLoader(fEventFolderName) ;
   AliPHOSLoader * phosLoader = dynamic_cast<AliPHOSLoader*>(rl->GetLoader("PHOSLoader"));
 
+  if(!phosLoader) 
+    AliFatal("phosLoader is null pointer!!") ; 
+  
   //switch off reloading of this task while getting event
   if (!fInit) { // to prevent overwrite existing file
     AliError( Form("Give a version name different from %s", fEventFolderName.Data()) ) ;