diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 10:58:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:45 +0000 |
commit | 7f44e3a4eab74652cd72db9da5b8d316ac127eb1 (patch) | |
tree | a3e6ae18fae9a1e5c755814b28851c62ce374bb3 /sc | |
parent | 6fdd21e4bc9f779a7ae77eb4612fdf0dcef76b9d (diff) |
coverity#1187680 Dereference null return value
Change-Id: I84a87700b0c21461dfedfdfdfc098dfd6db6c4b6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 1feb4059ea30..4fc7c08ea82b 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1522,7 +1522,11 @@ void ScCheckListMenuWindow::initMembers() maChecks.CheckEntry( maMembers[i].maName, maMembers[i].mpParent, maMembers[i].mbVisible); // Expand first node of checked dates if ( maMembers[ i ].mpParent == NULL && maChecks.IsChecked( maMembers[i].maName, maMembers[i].mpParent ) ) - maChecks.Expand( maChecks.FindEntry( NULL, maMembers[ i ].maName ) ); + { + SvTreeListEntry* pEntry = maChecks.FindEntry( NULL, maMembers[ i ].maName ); + if (pEntry) + maChecks.Expand( pEntry ); + } if (maMembers[i].mbVisible) ++nVisMemCount; |