summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-03-01 16:47:36 +0100
committerDavid Tardon <dtardon@redhat.com>2015-03-01 17:33:58 +0100
commitb005064ba45255ff9229a3060e6cba2cfbf4e588 (patch)
tree40f000be05eef705d1e5762277f878d43d61a4ac /dbaccess
parent0d66044eb60dbe0ff241fbf1e8303cef8ce1953b (diff)
avoid NULL ptr deref.
Change-Id: I913e967aa59808077e346b955b136d8faf4b749b
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx2
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();
}