hwpfilter/source/hwpfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a82a0c0e688e029b76598445bcce14e6468cac3b Author: Caolán McNamara <caol...@redhat.com> Date: Tue Feb 20 16:26:21 2018 +0000 forcepoint #1 Thanks to Antti Levomäki and Christian Jalio from Forcepoint. Change-Id: Ic5e9a9d0f8f8d35cb6b39e68338ba029948a4ce0 Reviewed-on: https://gerrit.libreoffice.org/50083 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h index 470fa2bdfd41..b205e986963a 100644 --- a/hwpfilter/source/hwpfile.h +++ b/hwpfilter/source/hwpfile.h @@ -230,7 +230,7 @@ class DLLEXPORT HWPFile HWPInfo& GetHWPInfo(void) { return _hwpInfo; } HWPFont& GetHWPFont(void) { return _hwpFont; } HWPStyle& GetHWPStyle(void) { return _hwpStyle; } - HWPPara *GetFirstPara(void) { return plist.front().get(); } + HWPPara *GetFirstPara(void) { return !plist.empty() ? plist.front().get() : nullptr; } EmPicture *GetEmPicture(Picture *pic); EmPicture *GetEmPictureByName(char * name); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits