From 285a94b8de111ac1caef8a8b7cbcd2774d9edfe2 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 9 Apr 2025 09:58:33 +0200 Subject: [PATCH] fix warning C6011: Dereferencing NULL pointer 'pImpPrMap' (take 2) after commit 8009183a7a4cd1f5b2b6e78e480ade3f10d0eff2 Author: Noel Grandin 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 Tested-by: Jenkins --- xmloff/source/draw/ximpstyl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)