summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-05 21:15:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-05 21:15:54 +0000
commit0c39c456f47c14e2b7f86d1bc6857dc0e2ca6cb3 (patch)
tree019c72a264a29b4566021381438621cfd9e6b5da /sd
parent7aba9dcf13ac464acfcfe3cba7b2e5918790ce0e (diff)
afl-eventesting: deref of null mpTextObj
Change-Id: Icdb7d1cc250640f428984b96b0a51ac950013cb2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/Outliner.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index c7f315a54bbb..8ae295065634 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -1384,7 +1384,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() );