diff options
-rw-r--r-- | sw/source/core/unocore/unosrch.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx index db0a98b2e7ea..d4816e5b009a 100644 --- a/sw/source/core/unocore/unosrch.cxx +++ b/sw/source/core/unocore/unosrch.cxx @@ -150,7 +150,9 @@ void SwSearchProperties_Impl::FillItemSet(SfxItemSet& rSet, bool bIsValueSearch) for(auto const & rPair : maValues) { SfxPoolItem* pTempItem = nullptr; - const SfxItemPropertyMapEntry & rPropEntry = *mrMap.getByName(rPair.first); + const SfxItemPropertyMapEntry* pPropEntry = mrMap.getByName(rPair.first); + assert(pPropEntry && "SetProperties only enters values into maValues if mrMap.hasPropertyByName() wass true"); + const SfxItemPropertyMapEntry & rPropEntry = *pPropEntry; sal_uInt16 nWID = rPropEntry.nWID; switch(nWID) { |