Fixes for Coverity issues: 21876, 21795, 21786, 21782, 21781
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliCorrectionManagerBase.cxx
index 35e8027..c47169f 100644 (file)
@@ -703,7 +703,7 @@ AliCorrectionManagerBase::Correction::Print(Option_t* option) const
   
   TString opt(option);
   opt.ToUpper();
-  if (!opt.Contains("D")) return;
+  if (!opt.Contains("D") || !fObject) return;
 
   gROOT->IncreaseDirLevel();
   fObject->Print();