[PATCH] coverity#704618 Explicit null dereferenced

Julien Nabet (via Code Review) gerrit at gerrit.libreoffice.org
Wed Mar 20 05:02:44 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2866

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/66/2866/1

coverity#704618 Explicit null dereferenced

Change-Id: I9f3befc235b0fb7933294be4a97d168ef203a79c
---
M dbaccess/source/ui/dlg/dbwizsetup.cxx
1 file changed, 1 insertion(+), 1 deletion(-)



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 @@
             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 ) );
     }

-- 
To view, visit https://gerrit.libreoffice.org/2866
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f3befc235b0fb7933294be4a97d168ef203a79c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Julien Nabet <serval2412 at yahoo.fr>



More information about the LibreOffice mailing list