summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-06 09:29:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-06 09:46:40 +0000
commita98a4f13e1c94c876613a4b9a95e38aed6ab2eaf (patch)
treee06a6ef23d75e5eae7ca6013f6cabed352ff3752 /dbaccess
parente031c8ae1ac046fcf165213d80e83311d80a71f5 (diff)
coverity#1158200 Dereference null return value
Change-Id: I9d8215f2fc2ab93a0d4315a8ad71b64560b6d732
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/inc/sbamultiplex.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/dbaccess/source/ui/inc/sbamultiplex.hxx b/dbaccess/source/ui/inc/sbamultiplex.hxx
index 9a09a883e766..8499f65be39a 100644
--- a/dbaccess/source/ui/inc/sbamultiplex.hxx
+++ b/dbaccess/source/ui/inc/sbamultiplex.hxx
@@ -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; \
} \
\