diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 20:45:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-19 21:26:01 +0100 |
commit | 6d28e240f0f3400fa2729afa3cae54da61f5a34c (patch) | |
tree | 36c3bf022ccb06b38df5e8b1032a572267b72375 /extensions | |
parent | 0fc353a98fb3864f6a52d7bbdcd9dc801f4f8e8a (diff) |
coverity#982457 Explicit null dereferenced
Change-Id: Ia5229858cdb2c6d8088ed6684186e5cfc1fe4213
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/plugin/base/xplugin.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx index 6b3ea7bc797d..f2e44274db9f 100644 --- a/extensions/source/plugin/base/xplugin.cxx +++ b/extensions/source/plugin/base/xplugin.cxx @@ -540,11 +540,17 @@ void XPlugin_Impl::loadPlugin() sv[0], sv[1] ); + + SAL_WARN_IF( !pComm, "extensions.plugin", "no PluginComm"); + if (!pComm) + return; + #elif defined WNT PluginComm* pComm = new PluginComm_Impl( m_aDescription.Mimetype, m_aDescription.PluginName, (HWND)pEnvData->hWnd ); #endif + setPluginComm( pComm ); } else |