fix warning C6011: Dereferencing NULL pointer 'pImpPrMap' (take 2)

after
commit 8009183a7a
Author: Noel Grandin <noelgrandin@gmail.com>
Date:   Sat Apr 5 22:03:18 2025 +0200

    tdf#151876 shave some time off chart load (2)

Change-Id: I687d939813e50f78eec92e15ea8aa9606316ea1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183870
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Xisco Fauli
2025-04-09 09:58:33 +02:00
parent bd135e5f29
commit 285a94b8de

View File

@@ -245,9 +245,8 @@ void XMLDrawingPageStyleContext::FillPropertySet(
{
SvXMLImportPropertyMapper* pImpPrMap =
GetStyles()->GetImportPropertyMapper( GetFamily() );
SAL_WARN_IF( !pImpPrMap, "xmloff", "There is the import prop mapper" );
if( pImpPrMap )
pImpPrMap->FillPropertySet(GetProperties(), rPropSet, m_pContextIDs.get());
assert( pImpPrMap );
pImpPrMap->FillPropertySet(GetProperties(), rPropSet, m_pContextIDs.get());
Reference< beans::XPropertySetInfo > xInfo;
for (size_t i=0; m_pContextIDs[i].nContextID != -1; ++i)