diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 15:59:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 16:26:27 +0100 |
commit | 4285773bdb5ab5aaaeafa4cbc23655020c0bc538 (patch) | |
tree | a9bc36826639f5869236d2ff9d48b1ab63e40ca1 /sd | |
parent | a18dc050bc282a9aa086091f6b0848a3311c79be (diff) |
coverity#704776 Dereference after null check
Change-Id: I16a9cb07ebcadff31aed348c3380ffa9e859f9e4
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 462992c78114..55c6fcc3fd3b 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -997,7 +997,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) /********************************************************************** * MASTERPAGE **********************************************************************/ - SdrPageView* pPageView = mpDrawView->GetSdrPageView(); + SdrPageView* pPageView = mpDrawView ? mpDrawView->GetSdrPageView() : NULL; if (pPageView) { |