coverity#1158200 Dereference null return value
Change-Id: I9d8215f2fc2ab93a0d4315a8ad71b64560b6d732
This commit is contained in:
@@ -275,7 +275,12 @@ namespace dbaui
|
|||||||
::com::sun::star::uno::Sequence< OUString > aContained = m_aListeners.getContainedTypes(); \
|
::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) \
|
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; \
|
return nLen; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
Reference in New Issue
Block a user