sw/source/core/edit/editsh.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 2755bf801ee7105fdaee8221714909f839e2ca78 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Sep 18 13:00:34 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 20 12:00:54 2018 +0200 tdf#119770 nullptr GetGraphic return Change-Id: I9e76b6704e7f82cd9d200ed6c5802101de264242 Reviewed-on: https://gerrit.libreoffice.org/60685 Tested-by: Jenkins Tested-by: Xisco Faulí <xiscofa...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index e3f443b25eec..e93ef829f83d 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -605,7 +605,8 @@ Graphic SwEditShell::GetIMapGraphic() const } else if ( rNd.IsOLENode() ) { - aRet = *static_cast<SwOLENode&>(rNd).GetGraphic(); + if (const Graphic* pGraphic = static_cast<SwOLENode&>(rNd).GetGraphic()) + aRet = *pGraphic; } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits