sw/source/core/doc/rdfhelper.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit d50f6eb167a1b3c74dbe6e66b10ec906c2d1e351 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Wed Oct 3 05:47:49 2018 -0400 Commit: Ashod Nakashian <ashnak...@gmail.com> CommitDate: Thu Dec 26 04:35:19 2019 +0100 sw: paragraph-sign: skip invalid graph names Change-Id: Iaff61723497466521eddb2333656981f976d3fa6 Reviewed-on: https://gerrit.libreoffice.org/63006 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> (cherry picked from commit ffc9efb5c770a674c781bfedb3b91e912b6d0136) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85807 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sw/source/core/doc/rdfhelper.cxx b/sw/source/core/doc/rdfhelper.cxx index d1fb7d4dbf4f..ff77293639cc 100644 --- a/sw/source/core/doc/rdfhelper.cxx +++ b/sw/source/core/doc/rdfhelper.cxx @@ -73,6 +73,9 @@ SwRDFHelper::getStatements(const css::uno::Reference<css::frame::XModel>& xModel for (const uno::Reference<rdf::XURI>& xGraphName : rGraphNames) { uno::Reference<rdf::XNamedGraph> xGraph = xRepo->getGraph(xGraphName); + if (!xGraph.is()) + continue; + uno::Reference<container::XEnumeration> xStatements = xGraph->getStatements( xSubject, uno::Reference<rdf::XURI>(), uno::Reference<rdf::XURI>()); while (xStatements->hasMoreElements()) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits