summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-07 11:45:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 12:19:25 +0000
commit78cbc6de1b87134dcc0417537d270d49cbc8de38 (patch)
tree3ae654aa666196358a3423d8f7c651f766ab394b /sd
parent6e07c9885502fe0572761499e790ebf7aedb707d (diff)
coverity#735845 Dereference after null check
Change-Id: I8e90d4a005fd40586c8262c35a4b6351ae5a17d0
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 d5b8854b2d1f..e228ff2207b0 100644
--- a/sd/source/ui/view/drtxtob.cxx
+++ b/sd/source/ui/view/drtxtob.cxx
@@ -424,7 +424,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
// these are disabled in outline-mode
- if (!mpViewShell->ISA(DrawViewShell))
+ if (!mpViewShell || !mpViewShell->ISA(DrawViewShell))
{
rSet.DisableItem( SID_ATTR_PARA_ADJUST_LEFT );
rSet.DisableItem( SID_ATTR_PARA_ADJUST_RIGHT );