sc/source/ui/dbgui/dbnamdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2f135536d023c58ccee55bdcaa6a5c86d1e2b535 Author: Julien Nabet <[email protected]> AuthorDate: Sat Feb 7 21:29:00 2026 +0100 Commit: Balazs Varga <[email protected]> CommitDate: Mon Feb 9 15:48:34 2026 +0100 Fix MSVC Analyzer warning C6011: Dereferencing NULL pointer 'pData' Change-Id: Ie4e47210914a704bcb62c55a38ad3eab39e462dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198890 Reviewed-by: Julien Nabet <[email protected]> Tested-by: Jenkins (cherry picked from commit 6ba0a9544757c7ebe1b242029bc963d37afa2f41) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198937 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Balazs Varga <[email protected]> diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index edc8788eea9b..ba972adcb9e6 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -354,7 +354,7 @@ void ScDbNameDlg::UpdateDBData( const OUString& rStrName ) } m_xBtnAdd->set_label( aStrModify ); - if (!pData->GetTableStyleInfo()) + if (pData && !pData->GetTableStyleInfo()) { m_xOptions->set_sensitive(true); m_xBtnAdd->set_sensitive(true);
