Skip to content
Snippets Groups Projects
Commit 8e421001 authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

BeamPipeGeoModel: Coverity 113158.

Coverity warning: possible null pointer dereference.
Just remove the null test here; we're not anyway doing anything useful
if it fails.


Former-commit-id: 030f1040
parent 61cab8b6
No related branches found
No related tags found
No related merge requests found
......@@ -240,9 +240,6 @@ void BeamPipeDetectorFactory::addSections(GeoPhysVol* parent, int region)
GeoNameTag* ntSection = new GeoNameTag(name);
if (addToFirstSection && secNum!=1) {
if (!pvMotherSection) {
std::cout << "Unexpected condition when building beam pipe." << std::endl;
}
//std::cout << "Placing section " << secNum << " in Section1" << std::endl;
pvMotherSection->add(ntSection);
pvMotherSection->add(pvSection);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment