diff options
author | David Tardon <dtardon@redhat.com> | 2015-03-01 16:47:36 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-03-01 17:33:58 +0100 |
commit | b005064ba45255ff9229a3060e6cba2cfbf4e588 (patch) | |
tree | 40f000be05eef705d1e5762277f878d43d61a4ac /dbaccess | |
parent | 0d66044eb60dbe0ff241fbf1e8303cef8ce1953b (diff) |
avoid NULL ptr deref.
Change-Id: I913e967aa59808077e346b955b136d8faf4b749b
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/querycontroller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index 22d715f69e92..d1221bd99818 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -290,7 +290,7 @@ namespace { Reference< XWindow > xWindow(xUIElement->getRealInterface(), css::uno::UNO_QUERY); vcl::Window* pWindow = VCLUnoHelper::GetWindow( xWindow ); - if( pWindow || pWindow->HasChildPathFocus() ) + if( pWindow && pWindow->HasChildPathFocus() ) { pWindow->GrabFocusToDocument(); } |