summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-09-02 18:20:52 +0200
committerAndras Timar <andras.timar@collabora.com>2014-09-15 17:07:47 +0200
commit159c997a73c4bb0e1bb50c796f67957989ab9bce (patch)
treee56ef36d6dc3be8f9952098ad42becb917087fa9 /sc
parent0e8da0bbe8517fffb0245c1ac7c4cc9540eabff3 (diff)
check for empty slots' valid NULL pointer, fdo#79441
Change-Id: Ie81b8b00c1ab8776086bddeb7464bb7809914bf8 (cherry picked from commit 2be9ae72189e8b86d7e609727bab223645975ddb) Reviewed-on: https://gerrit.libreoffice.org/11259 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/bcaslot.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx
index 1eff597ca194..232c2275cb01 100644
--- a/sc/source/core/data/bcaslot.cxx
+++ b/sc/source/core/data/bcaslot.cxx
@@ -1043,7 +1043,8 @@ std::vector<sc::AreaListener> ScBroadcastAreaSlotMachine::GetAllListeners(
while ( nOff <= nEnd )
{
ScBroadcastAreaSlot* p = *pp;
- p->GetAllListeners(rRange, aRet, eType);
+ if (p)
+ p->GetAllListeners(rRange, aRet, eType);
ComputeNextSlot( nOff, nBreak, pp, nStart, ppSlots, nRowBreak);
}
}