diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-10-03 05:47:49 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-01-03 14:10:30 +0100 |
commit | 42c9821cb5df50c659c36addab6b33c9065cb32d (patch) | |
tree | d69f53cbac186e3f9afe2bcecb0d16d694689a73 /sw | |
parent | 484867ec5e716a1828a41b2535f7a1e10e8f3fe7 (diff) |
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@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/rdfhelper.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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()) |