summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-25 20:34:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-25 20:56:32 +0000
commitee446f12390220ebcac8700a4fd4a1b5ebfc948d (patch)
treee937ff9ca875de594e780ae29a2c84dae687aa27 /sfx2
parent85344383974a7d45082c44dc679a5dc4fd2355c9 (diff)
coverity#440744 Dereference after null check
Change-Id: Id9ab2ffde8eb82e49164350d1703e4d93f96663e
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 0ada1315ef65..6bfc27fa9181 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1005,7 +1005,8 @@ short SfxTabDialog::Ok()
if ( pTabPage->FillItemSet( aTmp ) )
{
bModified |= sal_True;
- pExampleSet->Put( aTmp );
+ if (pExampleSet)
+ pExampleSet->Put( aTmp );
pOutSet->Put( aTmp );
}
}