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

coverity#1158200 Dereference null return value

Change-Id: I9d8215f2fc2ab93a0d4315a8ad71b64560b6d732
üst e031c8ae
......@@ -273,9 +273,14 @@ namespace dbaui
{ \
sal_Int32 nLen = 0; \
::com::sun::star::uno::Sequence< OUString > aContained = m_aListeners.getContainedTypes(); \
const OUString* pContained = aContained.getConstArray(); \
const OUString* pContained = aContained.getConstArray(); \
for ( sal_Int32 i=0; i<aContained.getLength(); ++i, ++pContained) \
nLen += m_aListeners.getContainer(*pContained)->getLength(); \
{ \
::cppu::OInterfaceContainerHelper* pListeners = m_aListeners.getContainer(*pContained); \
if (!pListeners) \
continue; \
nLen += pListeners->getLength(); \
} \
return nLen; \
} \
\
......
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