Fix for coverity warning 21784. (Misha Veldhoen <Misha.Veldhoen@cern.ch>)
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jun 2013 12:27:50 +0000 (12:27 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jun 2013 12:27:50 +0000 (12:27 +0000)
PWGCF/Correlations/DPhi/DiHadronPID/AliAnalysisTaskCompareAODTrackCuts.cxx

index e1db231..003d5c8 100644 (file)
@@ -134,11 +134,11 @@ void AliAnalysisTaskCompareAODTrackCuts::UserCreateOutputObjects() {
        AliAnalysisManager* manager = AliAnalysisManager::GetAnalysisManager();
        if (!manager) {AliFatal("Could not obtain analysis manager.");}
        AliInputEventHandler* inputHandler = dynamic_cast<AliInputEventHandler*> (manager->GetInputEventHandler());
-       if (!inputHandler) {AliFatal("Could not obtain input handler.");}       
+       if (!inputHandler) {AliFatal("Could not obtain input handler."); return;}       
 
        // Getting the pointer to the PID response object.
        fPIDResponse = inputHandler->GetPIDResponse();
-       if (!fPIDResponse) {AliFatal("Could not obtain PID response.");}
+       if (!fPIDResponse) {AliFatal("Could not obtain PID response."); return;}
 
        // Create the output list.
        fOutputList = new TList();