Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Merge requests
!58746
23.0-cppcheck-CaloTrackingGeometry
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
23.0-cppcheck-CaloTrackingGeometry
sroe/athena:23.0-cppcheck-CaloTrackingGeometry
into
master
Overview
4
Commits
1
Pipelines
1
Changes
1
Merged
Shaun Roe
requested to merge
sroe/athena:23.0-cppcheck-CaloTrackingGeometry
into
master
2 years ago
Overview
4
Commits
1
Pipelines
1
Changes
1
Expand
protect against possible nullptr dereference
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e7fb2eaa
1 commit,
2 years ago
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Calorimeter/CaloTrackingGeometry/src/CaloTrackingGeometryBuilder.cxx
+
5
−
1
Options
@@ -346,7 +346,11 @@ Trk::TrackingGeometry* Calo::CaloTrackingGeometryBuilder::trackingGeometry(Trk::
return
nullptr
;
}
}
//if caloDD is still null, we;re in trouble because it gets dereferenced after this
if
(
!
caloDDM
){
ATH_MSG_WARNING
(
"caloDDM is a null pointer in CaloTrackingGeometryBuilder"
);
return
nullptr
;
}
const
std
::
vector
<
Trk
::
TrackingVolume
*>*
lArVolumes
=
m_lArVolumeBuilder
->
trackingVolumes
(
*
caloDDM
);
ATH_MSG_INFO
(
lArVolumes
->
size
()
<<
" volumes retrieved from "
<<
m_lArVolumeBuilder
.
name
()
);
Loading