[Libreoffice-commits] core.git: dbaccess/source

Julien Nabet serval2412 at yahoo.fr
Wed Mar 20 05:31:39 PDT 2013


 dbaccess/source/ui/dlg/dbwizsetup.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1890f4ba4c0b345a73185adf320d06d0974f644b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Mar 20 13:00:45 2013 +0100

    coverity#704618 Explicit null dereferenced
    
    Change-Id: I9f3befc235b0fb7933294be4a97d168ef203a79c
    Reviewed-on: https://gerrit.libreoffice.org/2866
    Reviewed-by: Noel Power <noel.power at suse.com>
    Tested-by: Noel Power <noel.power at suse.com>

diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx
index 7a9afc3..338e7c0 100644
--- a/dbaccess/source/ui/dlg/dbwizsetup.cxx
+++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx
@@ -587,7 +587,7 @@ TabPage* ODbTypeWizDialogSetup::createPage(WizardState _nState)
             break;
     }
 
-    if ((_nState != PAGE_DBSETUPWIZARD_INTRO) && (_nState != PAGE_DBSETUPWIZARD_AUTHENTIFICATION))
+    if (pPage && (_nState != PAGE_DBSETUPWIZARD_INTRO) && (_nState != PAGE_DBSETUPWIZARD_AUTHENTIFICATION))
     {
         pPage->SetModifiedHandler(LINK( this, ODbTypeWizDialogSetup, ImplModifiedHdl ) );
     }


More information about the Libreoffice-commits mailing list