summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/sdmod1.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-23 14:47:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 14:47:18 +0000
commit66c8930012caf53721614e1591e519bf8ab03c73 (patch)
treee4ae662b3bf226d7d4f9921c2417917cafdd5d4f /sd/source/ui/app/sdmod1.cxx
parent6cccfd6c63a0aac35770de3f712de14fc32fbb1d (diff)
coverity#704737 Dereference after null check
Change-Id: Icf30f9acf70c0dd367bad3f5711e71d9ab125ce9
Diffstat (limited to 'sd/source/ui/app/sdmod1.cxx')
-rw-r--r--sd/source/ui/app/sdmod1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 7310418dc867..584b5df403c0 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -286,7 +286,7 @@ void SdModule::OutlineToImpress (SfxRequest& rRequest)
::sd::ViewShell* pViewSh = pDocSh->GetViewShell();
- if (pViewSh)
+ if (pViewSh && pDoc)
{
// AutoLayouts have to be finished
pDoc->StopWorkStartupDelay();