Commit eb22e916 authored by Sean McBride's avatar Sean McBride
Browse files

Fixed null deref by adding null check.

If factory methods weren't "auto-initialized", a null dereference
would occur in this codepath.

Change-Id: Ic5298701844be1f252a92871031a2ede93059dfa
parent 24d65354
...@@ -60,8 +60,11 @@ vtkInteractorStyle::vtkInteractorStyle() ...@@ -60,8 +60,11 @@ vtkInteractorStyle::vtkInteractorStyle()
this->OutlineActor = NULL; this->OutlineActor = NULL;
this->OutlineMapper = vtkPolyDataMapper::New(); this->OutlineMapper = vtkPolyDataMapper::New();
this->OutlineMapper->SetInputConnection( if(this->OutlineMapper && this->Outline)
this->Outline->GetOutputPort()); {
this->OutlineMapper->SetInputConnection(
this->Outline->GetOutputPort());
}
this->PickedRenderer = NULL; this->PickedRenderer = NULL;
this->CurrentProp = NULL; this->CurrentProp = NULL;
......
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