SVTK::Find<VISU_Actor>(anActors,
VISU::TIsSamePrs3d(aLastVisitedPrs3d));
// If the holder was erased from view then do nothing
- if(!anActor->GetVisibility())
+ if(!anActor || !anActor->GetVisibility())
return true;
if(aPrs3d != aLastVisitedPrs3d){
SVTK::Find<VISU_Actor>(anActors,
VISU::TIsSamePrs3d(aPrs3d));
if(!aNewActor){
- anActor = aPrs3d->CreateActor();
+ aNewActor = aPrs3d->CreateActor();
aViewWindow->AddActor(aNewActor);
}else
aNewActor->SetVisibility(true);