summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-27 09:34:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-27 11:14:33 +0000
commitdbd85e0eb3476bed23a9586bd1edc5d5686fe6c5 (patch)
tree624579b3e15e61d495bccba5b0b2700ce81593f5 /ucb
parenta4b3f834b62d4100b00a523ed278892794b5aa6a (diff)
coverity#1158203 Dereference null return value
Change-Id: I8cff85b4d68c28581ddb7a8552378422be6b6a25
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/bc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 4658864ea9cd..eb392fc3e6ab 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -1369,7 +1369,10 @@ BaseContent::cPCL( void )
ListenerMap* listener = new ListenerMap();
for( sal_Int32 i = 0; i < length; ++i )
{
- (*listener)[seqNames[i]] = m_pPropertyListener->getContainer( seqNames[i] )->getElements();
+ cppu::OInterfaceContainerHelper* pContainer = m_pPropertyListener->getContainer(seqNames[i]);
+ if (!pContainer)
+ continue;
+ (*listener)[seqNames[i]] = pContainer->getElements();
}
p = new PropertyChangeNotifier( this,