diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 15:59:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-08 09:56:19 +0100 |
commit | 7afdd1baedc7f5f6d9d75d2e4df12c509c715927 (patch) | |
tree | 0db84a5b90012d3a60e35e6cb47a05d669cd870d | |
parent | 20d078326d37f3939eb83d5b2bfa4b108b497a90 (diff) |
coverity#735936 Explicit null dereferenced
Change-Id: If85ed1e4c9aa4e1d816515264f21154d5661051c
-rw-r--r-- | sw/source/filter/html/htmlforw.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/html/htmlforw.cxx b/sw/source/filter/html/htmlforw.cxx index e4fcc4259d09..cda0bbd9e127 100644 --- a/sw/source/filter/html/htmlforw.cxx +++ b/sw/source/filter/html/htmlforw.cxx @@ -704,6 +704,9 @@ Writer& OutHTML_DrawFrmFmtAsControl( Writer& rWrt, SwHTMLWriter & rHTMLWrt = (SwHTMLWriter&)rWrt; SdrUnoObj *pFormObj = PTR_CAST( SdrUnoObj, &rSdrObject ); + assert(pFormObj); + if (!pFormObj) + return rWrt; uno::Reference< awt::XControlModel > xControlModel = pFormObj->GetUnoControlModel(); |