summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 14:06:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 14:30:43 +0000
commitb78b5b1da560bf3a9332a3775d39276275d3709c (patch)
tree464f8e437b9696b23fddbac232abe1c2e67a3159 /extensions
parent40a8fecb58ebd55db5bb3108b838900b7d54d07f (diff)
coverity#705810 Dereference before null check
Change-Id: I2fab51f08c461faaf4b88b4b7c0b887ba877226c
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibbeam.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx
index 05c78c394ed2..c4619f5ae2f8 100644
--- a/extensions/source/bibliography/bibbeam.cxx
+++ b/extensions/source/bibliography/bibbeam.cxx
@@ -199,12 +199,9 @@ namespace bib
{
createToolBar();
createGridWin();
- if ( pDatMan )
- pDatMan->SetToolbar(pToolBar);
+ pDatMan->SetToolbar(pToolBar);
pGridWin->Show();
-
- if ( pDatMan )
- connectForm( pDatMan );
+ connectForm( pDatMan );
}
//---------------------------------------------------------------------
@@ -218,8 +215,7 @@ namespace bib
if ( pToolBar )
{
- if ( pDatMan )
- pDatMan->SetToolbar(0);
+ pDatMan->SetToolbar(0);
DELETEZ( pToolBar );
}