Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
3958362a
Commit
3958362a
authored
7 years ago
by
Carsten Patzke
Browse files
Options
Downloads
Patches
Plain Diff
Fixed nullptr issue at error to stream function
parent
61111406
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
common/cpp/include/common/error.h
+7
-1
7 additions, 1 deletion
common/cpp/include/common/error.h
with
7 additions
and
1 deletion
common/cpp/include/common/error.h
+
7
−
1
View file @
3958362a
...
...
@@ -82,7 +82,13 @@ static inline bool operator != (const Error& lhs, const ErrorTemplateInterface&
}
static
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Error
&
err
)
{
os
<<
err
->
Explain
();
if
(
err
)
{
os
<<
err
->
Explain
();
}
else
{
static
std
::
string
no_error
=
"No error"
;
os
<<
no_error
;
}
return
os
;
}
...
...
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