diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-10 11:41:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-10 13:39:15 +0100 |
commit | c6fc2647c8df5b9a7c41a192f2b78812d1f3656d (patch) | |
tree | 4a6469c571fd0041f593181120a802f307a21ed7 /sfx2 | |
parent | 73a8c2d6efa05f5c8ee44ff9468f00aed056aac2 (diff) |
coverity#1132691 Dereference null return value
Change-Id: I0da2f6956cf7675cce0d7d82a0ec797b50542c7f
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/app.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx index da43bfa53754..635c937e7cda 100644 --- a/sfx2/source/appl/app.cxx +++ b/sfx2/source/appl/app.cxx @@ -608,6 +608,11 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId ) OUString aSymbol( "basicide_macro_organizer" ); basicide_macro_organizer pSymbol = (basicide_macro_organizer) osl_getFunctionSymbol( handleMod, aSymbol.pData ); + SAL_WARN_IF(!pSymbol, "sfx.doc", "SfxApplication::MacroOrganizer, no symbol!"); + + if (!pSymbol) + return; + // call basicide_macro_organizer in basctl pSymbol( nTabId ); |