[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jan 3 13:10:53 UTC 2019
sw/source/core/doc/rdfhelper.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 42c9821cb5df50c659c36addab6b33c9065cb32d
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Wed Oct 3 05:47:49 2018 -0400
Commit: Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Thu Jan 3 14:10:30 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 <ashnakash at 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())
More information about the Libreoffice-commits
mailing list