summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-29 21:22:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-30 11:43:38 +0100
commit7210621e0367f2bcac8509c7701ebd272ad5ee3c (patch)
treedde1298edabe2967a1b0d2a8eb3e29ed7660ee42
parentfd223840fe9c6e72965a45f74cf4d046a7891152 (diff)
coverity#704714 Dereference after null check
Change-Id: Ib15d4f52ed57dae053d3b21b476b4e595145e38b
-rw-r--r--sc/source/ui/view/cellsh2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 42b6316ad0ce..097fa19ed53e 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -1166,7 +1166,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
case SID_DEFINE_DBNAME:
{
- if ( pDocSh && pDocSh->IsDocShared() )
+ if ( pDocSh->IsDocShared() )
{
rSet.DisableItem( nWhich );
}