summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-07 15:26:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-07 15:47:27 +0100
commit8c4acc98d192afbcad7654e63361593acd25b49c (patch)
tree5f4873165120f6bea2986c99c6e0dd774bf94ed6
parentb5e8833f57786336013b1607b9b92498aa554da4 (diff)
coverity#735932 Explicit null dereferenced
Change-Id: I35ccc5ba619f7e861fca2c5e78de86d88480017d
-rw-r--r--sw/source/filter/html/htmlbas.cxx4
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;