sw/source/uibase/config/dbconfig.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit 1150a34f0f4ba3d7ce8022c0ff9b1e486deeca9b Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Sep 28 08:53:17 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Sep 28 11:40:10 2023 +0200 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.mcnam...@collabora.com> 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");