cid#1636579 Dereference after null check
and cid#1636580 Dereference after null check cid#1636581 Dereference after null check Change-Id: I856876a99a0bbccf27055d2db0dd24f7f040d3af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178036 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
c97decfe2e
commit
e92db94e19
1 changed files with 3 additions and 3 deletions
|
@ -958,7 +958,7 @@ rtl::Reference<SwXBaseStyle> SwXStyleFamily::getStyleByName(const OUString& rNam
|
|||
SolarMutexGuard aGuard;
|
||||
OUString sStyleName;
|
||||
SwStyleNameMapper::FillUIName(rName, sStyleName, m_rEntry.poolId(),
|
||||
m_pDocShell && !m_pDocShell->GetDoc()->IsInWriterfilterImport());
|
||||
!m_pDocShell->GetDoc()->IsInWriterfilterImport());
|
||||
if(!m_pBasePool)
|
||||
throw uno::RuntimeException();
|
||||
SfxStyleSheetBase* pBase = m_pBasePool->Find(sStyleName, m_rEntry.family());
|
||||
|
@ -1026,7 +1026,7 @@ void SwXStyleFamily::insertStyleByName(const OUString& rName, const rtl::Referen
|
|||
throw uno::RuntimeException();
|
||||
OUString sStyleName;
|
||||
SwStyleNameMapper::FillUIName(rName, sStyleName, m_rEntry.poolId(),
|
||||
m_pDocShell && !m_pDocShell->GetDoc()->IsInWriterfilterImport());
|
||||
!m_pDocShell->GetDoc()->IsInWriterfilterImport());
|
||||
SfxStyleSheetBase* pBase = m_pBasePool->Find(sStyleName, m_rEntry.family());
|
||||
if (pBase)
|
||||
throw container::ElementExistException();
|
||||
|
@ -1040,7 +1040,7 @@ void SwXStyleFamily::insertByName(const OUString& rName, const uno::Any& rElemen
|
|||
throw uno::RuntimeException();
|
||||
OUString sStyleName;
|
||||
SwStyleNameMapper::FillUIName(rName, sStyleName, m_rEntry.poolId(),
|
||||
m_pDocShell && !m_pDocShell->GetDoc()->IsInWriterfilterImport());
|
||||
!m_pDocShell->GetDoc()->IsInWriterfilterImport());
|
||||
SfxStyleSheetBase* pBase = m_pBasePool->Find(sStyleName, m_rEntry.family());
|
||||
if (pBase)
|
||||
throw container::ElementExistException();
|
||||
|
|
Loading…
Reference in a new issue