From a98a4f13e1c94c876613a4b9a95e38aed6ab2eaf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 6 Feb 2014 09:29:52 +0000 Subject: coverity#1158200 Dereference null return value Change-Id: I9d8215f2fc2ab93a0d4315a8ad71b64560b6d732 --- dbaccess/source/ui/inc/sbamultiplex.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'dbaccess') 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; igetLength(); \ + { \ + ::cppu::OInterfaceContainerHelper* pListeners = m_aListeners.getContainer(*pContained); \ + if (!pListeners) \ + continue; \ + nLen += pListeners->getLength(); \ + } \ return nLen; \ } \ \ -- cgit