coverity#1158200 Dereference null return value

Change-Id: I9d8215f2fc2ab93a0d4315a8ad71b64560b6d732
This commit is contained in:
Caolán McNamara
2014-02-06 09:29:52 +00:00
parent e031c8ae1a
commit a98a4f13e1

View File

@@ -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; \
} \
\