summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-24 10:06:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-24 12:12:25 +0000
commitdc5205f6684f77b319204628ed8bffcffdc9802d (patch)
tree507da3f9ff1ee0dce024aa5e7bc6060654ff045f
parentb82958d30e6985f08e60dcf036afd13e344fa498 (diff)
coverity#705022 Dereference after null check
Change-Id: I1c0ecf51395bcd462ecf572b77eebcdfc0b2928c
-rw-r--r--sw/source/core/uibase/shells/annotsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/uibase/shells/annotsh.cxx b/sw/source/core/uibase/shells/annotsh.cxx
index beddafa6ec2e..8b96156db999 100644
--- a/sw/source/core/uibase/shells/annotsh.cxx
+++ b/sw/source/core/uibase/shells/annotsh.cxx
@@ -1151,7 +1151,7 @@ void SwAnnotationShell::GetNoteState(SfxItemSet &rSet)
break;
}
- if (pPostItMgr->HasActiveSidebarWin())
+ if (pPostItMgr && pPostItMgr->HasActiveSidebarWin())
{
if ( (pPostItMgr->GetActiveSidebarWin()->IsProtected()) &&
( (nSlotId==FN_DELETE_COMMENT) || (nSlotId==FN_REPLY) ) )