diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-18 13:00:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-18 22:00:45 +0200 |
commit | e0432408840196e3f0af3c91ba4a42c70262b1e0 (patch) | |
tree | 0b8b307b46316f4edb2dfaa5e91df0c5430ee761 | |
parent | 81bb872ad54410d3a0fdaeece62c8703f635506b (diff) |
tdf#119770 nullptr GetGraphic return
Change-Id: I9e76b6704e7f82cd9d200ed6c5802101de264242
Reviewed-on: https://gerrit.libreoffice.org/60683
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 04bd08bb8f6f..f5867ee7fb8a 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -603,7 +603,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 { |