Skip to content

Commit 802bf99

Browse files
authored
Merge pull request #5507 from Nandite/potential_null_pointer_access
[visualization] Access to a potential null pointer in interactor_style (#5503)
2 parents 2f14bf5 + 45a921e commit 802bf99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

visualization/src/interactor_style.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,11 +1050,14 @@ pcl::visualization::PCLVisualizerInteractorStyle::OnKeyDown ()
10501050
{
10511051
FindPokedRenderer(Interactor->GetEventPosition ()[0], Interactor->GetEventPosition ()[1]);
10521052
if(CurrentRenderer)
1053+
{
10531054
CurrentRenderer->ResetCamera ();
1055+
CurrentRenderer->Render ();
1056+
}
10541057
else
1058+
{
10551059
PCL_WARN ("no current renderer on the interactor style.\n");
1056-
1057-
CurrentRenderer->Render ();
1060+
}
10581061
break;
10591062
}
10601063

0 commit comments

Comments
 (0)