]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity warning 10074 fixed
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 12 Mar 2011 10:13:42 +0000 (10:13 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 12 Mar 2011 10:13:42 +0000 (10:13 +0000)
HLT/ITS/clusterfinders/AliHLTITSClusterFinderSSD.cxx
HLT/ITS/tracking/AliHLTITSTrackerComponent.cxx

index 0e587fccb2b892a78d0b78802342f119f7cf0f61..05179d0cc098d60713c1a8ada66f37a81127f53c 100644 (file)
@@ -374,6 +374,10 @@ FindClustersSSD(Ali1Dcluster* neg, Int_t nn,
   const TGeoHMatrix *mT2L=AliITSgeomTGeo::GetTracking2LocalMatrix(fModule);
 
   AliITSsegmentationSSD *seg = dynamic_cast<AliITSsegmentationSSD*>(fDetTypeRec->GetSegmentationModel(2));
+  if(!mT2L || !seg){
+     AliError(Form("HLT ClustersFinderSSD: null pointer from TGeo"));
+    return;
+  }
   if (fModule>fLastSSD1) 
     seg->SetLayer(6);
   else 
index bab14d6ef3e123a1dda45c8e3e374915769af2a9..6e8c6cb6ba568a6f3193b758dce28f6c44a00a66 100644 (file)
@@ -249,25 +249,24 @@ int AliHLTITSTrackerComponent::Configure( const char* cdbEntry, const char* chai
 
   //* read magnetic field
 
-  int iResult2 = 0; //ReadCDBEntry( kAliHLTCDBSolenoidBz, chainId );
   fSolenoidBz = GetBz();
 
   //* read the actual CDB entry if required
 
-  int iResult3 = ( cdbEntry ) ? ReadCDBEntry( cdbEntry, chainId ) : 0;
+  int iResult2 = ( cdbEntry ) ? ReadCDBEntry( cdbEntry, chainId ) : 0;
 
   //* read extra parameters from input (if they are)
 
-  int iResult4 = 0;
+  int iResult3 = 0;
 
   if ( commandLine && commandLine[0] != '\0' ) {
     HLTInfo( "received configuration string from HLT framework: \"%s\"", commandLine );
-    iResult4 = ReadConfigurationString( commandLine );
+    iResult3 = ReadConfigurationString( commandLine );
   }
 
   // Initialise the tracker here
 
-  return iResult1 ? iResult1 : ( iResult2 ? iResult2 : ( iResult3 ? iResult3 : iResult4 ) );
+  return iResult1 ? iResult1 : ( iResult2 ? iResult2 : iResult3 );
 }