diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 10:48:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:45 +0000 |
commit | 7848b15c23d41e58b9b3eeb0eb26a6219d38857e (patch) | |
tree | 34bca8db463134707741dbd2eba9511c2785c0d4 /sc/source/ui | |
parent | 581ffdd2864c2c0c9c4011fd3221d54c363f2452 (diff) |
coverity#1187677 Dereference null return value
Change-Id: Ia09c80cc2cf6a35843b0794143febdb19d0eb717
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/view/select.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx index f12bb5ec847f..8541d9e41648 100644 --- a/sc/source/ui/view/select.cxx +++ b/sc/source/ui/view/select.cxx @@ -399,6 +399,9 @@ bool ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, bool bScrol return false; ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); + if (!pProtect) + return false; + bool bSkipProtected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); bool bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); |