summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-02 15:35:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-02 20:08:21 +0000
commit7c8d2e2b6da71ba829b3f566b764715c79f989a3 (patch)
tree0f4a9de286c629368f9ef2be2303272a8d631d5c /sd
parent4e93f0f507bdd33160a63a2b70d8e7f6f1d92fee (diff)
coverity#735830 Dereference after null check
Change-Id: I62342173f01a593fe245ce897f712b9011926620
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc3.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index b57c67f843e1..b55510a91589 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -956,7 +956,9 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
if( bUndo )
EndUndo();
- pUndoMgr->LeaveListAction();
+
+ if (pUndoMgr)
+ pUndoMgr->LeaveListAction();
return bContinue;
}