sw/source/uibase/shells/textfld.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5d07ba3c1e887993715425721ab165567ee5fdea Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Oct 28 09:26:01 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Oct 28 14:52:51 2020 +0100 cid#1468665 Dereference after null check Change-Id: I43de6ea072ac5e462c109328ba614f308cd6f27d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104921 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index ff104e8544d7..9eaa2241e339 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -804,7 +804,7 @@ void SwTextShell::StateField( SfxItemSet &rSet ) rSet.InvalidateItem( FN_HIDE_NOTE ); } // tdf#137568 do not offer comment formating, if no comments are present - if ( !pPostItMgr->HasNotes() ) + if (!pPostItMgr || !pPostItMgr->HasNotes()) rSet.DisableItem( FN_FORMAT_ALL_NOTES ); } break; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits