Fix coverity : CID 19655 - Forward Null
authoramaire <amaire@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Jan 2013 16:32:33 +0000 (16:32 +0000)
committeramaire <amaire@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Jan 2013 16:32:33 +0000 (16:32 +0000)
commit14f5660a1e9d53d66d5a441e33913754801cbfe2
tree7f4dede023742b3c270fd6f18ac358f30aa2111c
parentd58451d784e8dc793c258286f06b3b4ae5ebe4e1
Fix coverity : CID 19655 - Forward Null

Check the AliESDtrack pointer is not null, in the method AliAnalysisTaskCheckCascade::DoAngularCorrelation.
If null, return the function.

       AliESDtrack *lLeadingTrck = 0x0;
              lLeadingTrck =dynamic_cast<AliESDtrack*>( (InputEvent())->GetTrack( lLeadingPrimTrackIdx ) );
       if( !lLeadingTrck ) return;

Cheers,
   Antonin
PWGLF/STRANGENESS/Cascades/AliAnalysisTaskCheckCascade.cxx