Kaydet (Commit) 6d28e240 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982457 Explicit null dereferenced

Change-Id: Ia5229858cdb2c6d8088ed6684186e5cfc1fe4213
üst 0fc353a9
...@@ -540,11 +540,17 @@ void XPlugin_Impl::loadPlugin() ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment