From ae2cccdd2c45ccec1d6dc6764698f105ffa72d2f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 18 Jun 2014 14:41:35 +0200 Subject: [PATCH] Missing null check (triggered e.g. by CppunitTest_dbaccess_dialog_save) Change-Id: I2f78ca59bfebbcffd9a6d0309c49179457bd9172 --- dbaccess/source/ui/app/AppDetailPageHelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 7ac7bccb6131..c0cffcf5e339 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -686,7 +686,7 @@ void OAppDetailPageHelper::setDetailPage(Window* _pWindow) bool bHasFocus = false; m_aFL.Show(); { - bHasFocus = pCurrent->HasChildPathFocus(); + bHasFocus = pCurrent != 0 && pCurrent->HasChildPathFocus(); _pWindow->Show(); } m_aTBPreview.Show();