Kaydet (Commit) b005064b authored tarafından David Tardon's avatar David Tardon

avoid NULL ptr deref.

Change-Id: I913e967aa59808077e346b955b136d8faf4b749b
üst 0d66044e
...@@ -290,7 +290,7 @@ namespace ...@@ -290,7 +290,7 @@ namespace
{ {
Reference< XWindow > xWindow(xUIElement->getRealInterface(), css::uno::UNO_QUERY); Reference< XWindow > xWindow(xUIElement->getRealInterface(), css::uno::UNO_QUERY);
vcl::Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); vcl::Window* pWindow = VCLUnoHelper::GetWindow( xWindow );
if( pWindow || pWindow->HasChildPathFocus() ) if( pWindow && pWindow->HasChildPathFocus() )
{ {
pWindow->GrabFocusToDocument(); pWindow->GrabFocusToDocument();
} }
......
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