sc/source/ui/dbgui/dbnamdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7b3b82049f3b77da5efb1a4ace7b3d61fcd809bb Author: Julien Nabet <[email protected]> AuthorDate: Sat Feb 7 21:29:00 2026 +0100 Commit: Balazs Varga <[email protected]> CommitDate: Mon Feb 9 15:47:55 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/+/198936 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 8db1b94eea41..e0d135172562 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -353,7 +353,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);
