writerfilter/source/rtftok/rtfsdrimport.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 8cee73aae9bca3a94aa7a0aa3bfa82b593d4c3c7 Author: Caolán McNamara <[email protected]> AuthorDate: Wed Aug 1 10:19:52 2018 +0100 Commit: Michael Stahl <[email protected]> CommitDate: Fri Aug 3 10:40:43 2018 +0200 forcepoint#58 null deref Change-Id: I826890ec85a16bc05fc1e4cd068079b0f8734d07 Reviewed-on: https://gerrit.libreoffice.org/58394 Tested-by: Jenkins Reviewed-by: Michael Stahl <[email protected]> diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx index b15b79d2ac6a..66201fde00aa 100644 --- a/writerfilter/source/rtftok/rtfsdrimport.cxx +++ b/writerfilter/source/rtftok/rtfsdrimport.cxx @@ -1122,6 +1122,8 @@ void RTFSdrImport::append(const OUString& aKey, const OUString& aValue) void RTFSdrImport::appendGroupProperty(const OUString& aKey, const OUString& aValue) { + if (m_aParents.empty()) + return; uno::Reference<drawing::XShape> xShape(m_aParents.top(), uno::UNO_QUERY); if (xShape.is()) applyProperty(xShape, aKey, aValue); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
