diff options
author | Eike Rathke <erack@redhat.com> | 2014-09-02 18:20:52 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-02 15:57:44 -0500 |
commit | a7f7b93299a9a7af8b243099f78f236172c4cb51 (patch) | |
tree | 463bee52031c63cb237ad86fd31510e619ec4433 | |
parent | b51e8ee475832e20901d6dafb40b28c44582a3f3 (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>
-rw-r--r-- | sc/source/core/data/bcaslot.cxx | 3 |
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); } } |