xmloff/source/draw/ximpstyl.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 285a94b8de111ac1caef8a8b7cbcd2774d9edfe2
Author:     Xisco Fauli <[email protected]>
AuthorDate: Wed Apr 9 09:58:33 2025 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Apr 9 13:53:28 2025 +0200

    fix warning C6011: Dereferencing NULL pointer 'pImpPrMap' (take 2)
    
    after
    commit 8009183a7a4cd1f5b2b6e78e480ade3f10d0eff2
    Author: Noel Grandin <[email protected]>
    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 <[email protected]>
    Tested-by: Jenkins

diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index a213ed880be3..d44b5ed1d7f9 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -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)

Reply via email to