diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-05 21:15:14 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-11-10 22:31:16 +0100 |
commit | 435ac4e7a12c20a78d5dba68cfab2f83a72f7919 (patch) | |
tree | 0d52446678502c574782182735b87a97eebae94d /sd | |
parent | 849df784dd3784d480650d9a4efb2058f19b458f (diff) |
afl-eventesting: deref of null mpTextObj
Change-Id: Icdb7d1cc250640f428984b96b0a51ac950013cb2
(cherry picked from commit 0c39c456f47c14e2b7f86d1bc6857dc0e2ca6cb3)
Reviewed-on: https://gerrit.libreoffice.org/19814
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit f318e585265fe5b863bd9927f5aad415ba060173)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 4e18570ce862..0d4913e0dfe5 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -1396,7 +1396,7 @@ void Outliner::SetPage (EditMode eEditMode, sal_uInt16 nPageIndex) void Outliner::EnterEditMode (bool bGrabFocus) { OutlinerView* pOutlinerView = mpImpl->GetOutlinerView(); - if (pOutlinerView != NULL) + if (pOutlinerView && mpTextObj) { pOutlinerView->SetOutputArea( Rectangle( Point(), Size(1, 1))); SetPaperSize( mpTextObj->GetLogicRect().GetSize() ); |