sw/source/uibase/docvw/AnnotationWin.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit b1fda4356dd674dbbfd978b6f435a42f363c4284 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Sep 23 15:46:40 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Sep 23 20:17:22 2020 +0200 cid#1467433 Dereference null return value Change-Id: I2fb2ce96d063f3a0859e980ce07c2568210504f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103262 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx index 5bd82dab6bc6..c3ee1bac8d96 100644 --- a/sw/source/uibase/docvw/AnnotationWin.cxx +++ b/sw/source/uibase/docvw/AnnotationWin.cxx @@ -460,6 +460,9 @@ void SwAnnotationWin::InitAnswer(OutlinerParaObject const * pText) //collect our old meta data SwAnnotationWin* pWin = mrMgr.GetNextPostIt(KEY_PAGEUP, this); + if (!pWin) + return; + const SvtSysLocale aSysLocale; const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData(); SwRewriter aRewriter; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits