]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpSectorReader.cxx
Fixing FORWARD_NULL defect reported by Coverity
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSectorReader.cxx
index 35140146b7a861ee0279983ccacccdc4487e3c83..83ef4d69d705652fb6bd5605343dcd2d611b7983 100755 (executable)
@@ -416,7 +416,7 @@ void AliMpSectorReader::ReadRowSpecialData(istream& in, AliMp::XDirection direct
     while (!subZone && j<fSector->GetNofZones())
       subZone = fSector->GetZone(++j)->FindSubZone(segment->GetMotif(i));
     
-    subZone->AddRowSegment(segment);
+    if (subZone) subZone->AddRowSegment(segment);
   }  
 }