diff --git a/sd/source/ui/sidebar/NavigatorWrapper.cxx b/sd/source/ui/sidebar/NavigatorWrapper.cxx index 972a737ac707..bd3a13a62784 100644 --- a/sd/source/ui/sidebar/NavigatorWrapper.cxx +++ b/sd/source/ui/sidebar/NavigatorWrapper.cxx @@ -77,7 +77,10 @@ void NavigatorWrapper::UpdateNavigator() void NavigatorWrapper::GetFocus() { - maNavigator->GrabFocus(); + if (maNavigator) + maNavigator->GrabFocus(); + else + Control::GetFocus(); } } } // end of namespace sd::sidebar