diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 15:26:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 15:47:27 +0100 |
commit | 8c4acc98d192afbcad7654e63361593acd25b49c (patch) | |
tree | 5f4873165120f6bea2986c99c6e0dd774bf94ed6 /sw | |
parent | b5e8833f57786336013b1607b9b92498aa554da4 (diff) |
coverity#735932 Explicit null dereferenced
Change-Id: I35ccc5ba619f7e861fca2c5e78de86d88480017d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/htmlbas.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx index 051ade271925..63467afbe4e8 100644 --- a/sw/source/filter/html/htmlbas.cxx +++ b/sw/source/filter/html/htmlbas.cxx @@ -276,7 +276,9 @@ void SwHTMLWriter::OutBasic() for( sal_uInt16 j=0; j<pModules->Count(); j++ ) { const SbModule *pModule = PTR_CAST( SbModule, pModules->Get(j) ); - OSL_ENSURE( pModule, "Wo ist das Modul?" ); + assert(pModule); //Wo ist das Modul? + if (!pModule) + continue; OUString sLang(SVX_MACRO_LANGUAGE_STARBASIC); ScriptType eType = STARBASIC; |