]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 e1db2311985e833dea0d5bc9f7c9ec6aae11077d..003d5c8d1aa3f98a996b9bc0640e81fbc3a0f59f 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();