diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-17 09:45:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-17 10:57:59 +0100 |
commit | 4598bbe41d0906a34ceb1126c7fce2108642cd8e (patch) | |
tree | 4923c568255fda01099c1355b928d64ce41e616f /sd | |
parent | 04a4671b2d417b196c98884f1cd5dc2d188078be (diff) |
coverity#1223089 Dereference before null check
Change-Id: I790a7bed0a2ac77c452638349008f4a34fd4ad0c
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 009fa7e67e52..a4c639387596 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -678,7 +678,7 @@ bool View::SdrBeginTextEdit( SdrOutliner* pOutl, OutlinerView* pGivenOutlinerView, bool bDontDeleteOutliner, bool bOnlyOneView, bool bGrabFocus ) { - SdrPage* pPage = pObj->GetPage(); + SdrPage* pPage = pObj ? pObj->GetPage() : NULL; bool bMasterPage = pPage && pPage->IsMasterPage(); GetViewShell()->GetViewShellBase().GetEventMultiplexer()->MultiplexEvent( |