Commit ea87122f authored by Ben Boeckel's avatar Ben Boeckel

vtkCompositePolyDataMapper2: avoid a NULL dereference

Change-Id: I3c349342efd0be2c9b57f2754aab491324edbbbd
parent f6777cd5
......@@ -109,7 +109,7 @@ bool vtkCompositePolyDataMapper2::GetIsOpaque()
{
vtkCompositeDataSet *input = vtkCompositeDataSet::SafeDownCast(
this->GetInputDataObject(0, 0));
unsigned long int lastMTime = std::max(input->GetMTime(), this->GetMTime());
unsigned long int lastMTime = std::max(input ? input->GetMTime() : 0, this->GetMTime());
if (lastMTime <= this->LastOpaqueCheckTime)
{
return this->LastOpaqueCheckValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment