summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-16 09:08:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-16 12:19:05 +0200
commita51c1df3c2bad14de49a381945f4c55d4bccf8a8 (patch)
treeac01dcff3db7a07dc462a564beae7ea572eee30e /dbaccess
parentf29e3dbe015571d49d4262f4623a165a0cbc94a3 (diff)
cid#1500395 Dereference after null check
Change-Id: I16b490849d2fa29295e6182e1bbe91836c5655bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138343 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index f2a11bfc9b24..4b3b293348dd 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -678,7 +678,7 @@ namespace dbaui
// check for aFileDlg.GetCurrentFilter used to be here but current fpicker filter
// can be set to anything, see tdf#125267 how this breaks if other value
// than 'ODF Database' is selected. Let's therefore check only if wildcard matches
- if ( !pFilter->GetWildcard().Matches(sPath) )
+ if (pFilter && !pFilter->GetWildcard().Matches(sPath))
{
OUString sMessage(DBA_RES(STR_ERR_USE_CONNECT_TO));
std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(GetFrameWeld(),