Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
cca5aca0
Commit
cca5aca0
authored
8 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDRec: LayeringExtension prevent use of invalid iterator
parent
95458222
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDRec/src/LayeringExtensionImpl.cpp
+3
-1
3 additions, 1 deletion
DDRec/src/LayeringExtensionImpl.cpp
with
3 additions
and
1 deletion
DDRec/src/LayeringExtensionImpl.cpp
+
3
−
1
View file @
cca5aca0
...
...
@@ -171,7 +171,9 @@ void LayeringExtensionImpl::checkMap(int layerIndex) const {
map
<
int
,
LayerAttributes
>::
iterator
it
;
it
=
_layerMap
.
find
(
layerIndex
);
if
(
it
==
_layerMap
.
end
())
{
// TODO throw exception
std
::
stringstream
err
;
err
<<
"No entry found for layer"
<<
layerIndex
;
throw
std
::
out_of_range
(
err
.
str
());
}
if
(
not
it
->
second
.
isCalculated
)
{
it
->
second
.
calculate
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment