Skip to content
Snippets Groups Projects
Commit c84dc8aa authored by Spiros Tsalikis's avatar Spiros Tsalikis
Browse files

vtkOpenGLGlyph3DMapper: Avoid segfault

parent 337d9867
No related branches found
No related tags found
No related merge requests found
......@@ -800,7 +800,8 @@ void vtkOpenGLGlyph3DMapper::RebuildStructures(
}
// source can be null.
vtkDataObject* source = sourceCache[index];
vtkDataObject* source =
index < static_cast<int>(sourceCache.size()) ? sourceCache[index] : nullptr;
// Make sure we're not indexing into empty glyph
if (source)
......
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