From 6d28e240f0f3400fa2729afa3cae54da61f5a34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 18 Jul 2014 20:45:57 +0100 Subject: [PATCH] coverity#982457 Explicit null dereferenced Change-Id: Ia5229858cdb2c6d8088ed6684186e5cfc1fe4213 --- extensions/source/plugin/base/xplugin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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