diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-28 08:53:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-28 11:40:10 +0200 |
commit | 1150a34f0f4ba3d7ce8022c0ff9b1e486deeca9b (patch) | |
tree | fa9fae08eea124b337c27ff744d965cec70218d7 /sw/source/uibase/config | |
parent | a4716c316689de359eba1eb2a9f99e169c48cf59 (diff) |
cid#1500628 Dereference after null check
Change-Id: I6dc6c3fdf1924e0cd012dab1ece0adbb0c405335
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157354
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/uibase/config')
-rw-r--r-- | sw/source/uibase/config/dbconfig.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/uibase/config/dbconfig.cxx b/sw/source/uibase/config/dbconfig.cxx index 863593163d3b..669bda65a4a7 100644 --- a/sw/source/uibase/config/dbconfig.cxx +++ b/sw/source/uibase/config/dbconfig.cxx @@ -52,13 +52,10 @@ SwDBConfig::~SwDBConfig() void SwDBConfig::Load() { const Sequence<OUString>& rNames = GetPropertyNames(); - if(!m_pAdrImpl) - { + if (!m_pAdrImpl) m_pAdrImpl.reset(new SwDBData); - m_pAdrImpl->nCommandType = 0; + if (!m_pBibImpl) m_pBibImpl.reset(new SwDBData); - m_pBibImpl->nCommandType = 0; - } Sequence<Any> aValues = GetProperties(rNames); const Any* pValues = aValues.getConstArray(); OSL_ENSURE(aValues.getLength() == rNames.getLength(), "GetProperties failed"); |