coverity#982457 Explicit null dereferenced

Change-Id: Ia5229858cdb2c6d8088ed6684186e5cfc1fe4213
This commit is contained in:
Caolán McNamara
2014-07-18 20:45:57 +01:00
parent 0fc353a98f
commit 6d28e240f0

View File

@@ -540,11 +540,17 @@ void XPlugin_Impl::loadPlugin()
sv[0], sv[0],
sv[1] sv[1]
); );
SAL_WARN_IF( !pComm, "extensions.plugin", "no PluginComm");
if (!pComm)
return;
#elif defined WNT #elif defined WNT
PluginComm* pComm = new PluginComm_Impl( m_aDescription.Mimetype, PluginComm* pComm = new PluginComm_Impl( m_aDescription.Mimetype,
m_aDescription.PluginName, m_aDescription.PluginName,
(HWND)pEnvData->hWnd ); (HWND)pEnvData->hWnd );
#endif #endif
setPluginComm( pComm ); setPluginComm( pComm );
} }
else else