summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-12 10:09:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-12 11:02:15 +0000
commitd689dad8376764340c5adf9eaea91ad90481bd93 (patch)
tree61dbf99335ffa3ddf72c589c482118f87b40843a /sd
parent2308b4171c4d52f67e4ef8750d20c22dd8330f01 (diff)
coverity#704775 Dereference after null check
Change-Id: I03bbcfb7394568d816925a7633657bc48419f2c0
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drtxtob.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx
index e228ff2207b0..edb0736310da 100644
--- a/sd/source/ui/view/drtxtob.cxx
+++ b/sd/source/ui/view/drtxtob.cxx
@@ -443,7 +443,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
else
{
// paragraph spacing
- OutlinerView* pOLV = mpView->GetTextEditOutlinerView();
+ OutlinerView* pOLV = mpView ? mpView->GetTextEditOutlinerView() : NULL;
if( pOLV )
{
ESelection aSel = pOLV->GetSelection();