[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 23 18:18:02 UTC 2020


 sw/source/uibase/docvw/AnnotationWin.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b1fda4356dd674dbbfd978b6f435a42f363c4284
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Sep 23 15:46:40 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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;


More information about the Libreoffice-commits mailing list