Commit 57d3811f authored by Sean McBride's avatar Sean McBride

Fixed obvious null dereferences

Change-Id: Ia58a2fe42374dade0fb7005f2eb8d84c35401f29
parent ce0618c2
......@@ -80,6 +80,7 @@ void vtkAbstractMapper::RemoveClippingPlane(vtkPlane *plane)
if (this->ClippingPlanes == NULL)
{
vtkErrorMacro(<< "Cannot remove clipping plane: mapper has none");
return;
}
this->ClippingPlanes->RemoveItem(plane);
this->Modified();
......
......@@ -274,6 +274,7 @@ void vtkInteractorEventRecorder::Rewind()
if ( ! this->InputStream ) //need to already have an open file
{
vtkGenericWarningMacro(<<"No input file opened to rewind...");
return;
}
this->InputStream->clear();
this->InputStream->seekg(0);
......
......@@ -186,6 +186,11 @@ int vtkMapArrayValues::RequestData(
return 0;
}
}
else
{
vtkErrorMacro(<<"Invalid input type");
return 0;
}
vtkAbstractArray *inputArray = ods->GetAbstractArray(this->InputArrayName);
if (!inputArray)
......
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