sc/source/ui/dbgui/dbnamdlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6ba0a9544757c7ebe1b242029bc963d37afa2f41
Author:     Julien Nabet <[email protected]>
AuthorDate: Sat Feb 7 21:29:00 2026 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Sat Feb 7 22:33:42 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

diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index 686c46042a4e..e3b28a60ff77 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);

Reply via email to