Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
2c019257
Commit
2c019257
authored
Oct 02, 2001
by
Charles Law
Browse files
fixed segfualt when array name was NULL.
parent
ddef9c38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkFieldData.cxx
View file @
2c019257
...
...
@@ -735,8 +735,15 @@ void vtkFieldData::PrintSelf(ostream& os, vtkIndent indent)
os
<<
indent
<<
"Number Of Arrays: "
<<
this
->
GetNumberOfArrays
()
<<
"
\n
"
;
for
(
int
i
=
0
;
i
<
this
->
GetNumberOfArrays
();
i
++
)
{
os
<<
indent
<<
"Array "
<<
i
<<
" name = "
<<
this
->
GetArrayName
(
i
)
<<
"
\n
"
;
if
(
this
->
GetArrayName
(
i
))
{
os
<<
indent
<<
"Array "
<<
i
<<
" name = "
<<
this
->
GetArrayName
(
i
)
<<
"
\n
"
;
}
else
{
os
<<
indent
<<
"Array "
<<
i
<<
" name = NULL
\n
"
;
}
}
os
<<
indent
<<
"Number Of Components: "
<<
this
->
GetNumberOfComponents
()
<<
"
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment