diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 16:08:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-08 09:56:20 +0100 |
commit | 4041263bde64dcc9a9a225d7f5a171f3b0455724 (patch) | |
tree | 0283221d9ec258b0758ec0cdc8ac6beafc2f4cbe /sw | |
parent | 6fd5a490ffa15e4758e29dbb219b5b3fce39cf46 (diff) |
coverity#735943 Explicit null dereferenced
Change-Id: I268ec2db2e8ec4a40dd8537989d2afe767207d40
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/wrtw8esh.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index db1655836c0f..0e0b14111da9 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -3155,6 +3155,9 @@ bool SwMSConvertControls::ExportControl(WW8Export &rWW8Wrt, const SdrObject *pOb return false; SdrUnoObj *pFormObj = PTR_CAST(SdrUnoObj,pObj); + assert(pFormObj); + if (!pFormObj) + return false; uno::Reference< awt::XControlModel > xControlModel = pFormObj->GetUnoControlModel(); |