diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-05-26 10:33:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-26 12:23:19 +0100 |
commit | ac2ea8ab2cda18b9fb01cb0f6a9d510f7d143e4d (patch) | |
tree | c4c006103d9e017cdc590511da357c728d975d74 /sc | |
parent | 7be3b5b8bac080a8762279531bbe758b3675cc38 (diff) |
coverity#1409897 Dereference before null check
Change-Id: I9ce73a4836df502267ec9b247432dd86b6ac1b62
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index e27e7484608a..c7f3d076bfca 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -2241,7 +2241,7 @@ void ScDocShell::LOKCommentNotify(LOKCommentNotificationType nType, const ScDocu aAnnotation.put("id", pNote->GetId()); aAnnotation.put("tab", rPos.Tab()); - if (nType != LOKCommentNotificationType::Remove && pNote) + if (nType != LOKCommentNotificationType::Remove) { aAnnotation.put("author", pNote->GetAuthor()); aAnnotation.put("dateTime", pNote->GetDate()); |