sc/source/ui/styleui/styledlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b00aad5ef9c42b40d7490ad6160e21c599694eb5 Author: Mike Kaganski <[email protected]> AuthorDate: Sat Jan 10 18:21:43 2026 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Jan 10 20:44:17 2026 +0100 enable-msvc-analyze: C6011: Dereferencing NULL pointer C:\lo Dereferencing NULL pointer 'pInfoItem'. .: Lines: 99, 119, 121, 122, 132, 134, 136, 138 Change-Id: Ib77cb428e4d20cb25d12deff1268cb270976fb8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196977 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/sc/source/ui/styleui/styledlg.cxx b/sc/source/ui/styleui/styledlg.cxx index 56a58e1503c6..bccc706c5374 100644 --- a/sc/source/ui/styleui/styledlg.cxx +++ b/sc/source/ui/styleui/styledlg.cxx @@ -133,7 +133,7 @@ void ScStyleDlg::PageCreated(const OUString& rPageId, SfxTabPage& rTabPage) { const SvxFontListItem* pInfoItem = pDocSh->GetItem( SID_ATTR_CHAR_FONTLIST ); - OSL_ENSURE( pInfoItem, "FontListItem not found!" ); + assert(pInfoItem && "FontListItem not found!"); aSet.Put (SvxFontListItem(pInfoItem->GetFontList(), SID_ATTR_CHAR_FONTLIST)); rTabPage.PageCreated(aSet);
