summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-12-15 17:37:08 +0100
committerMichael Stahl <mstahl@redhat.com>2015-12-16 20:37:39 +0100
commit291f55edf3d5c1d443cbd9a06bc6f7fd773884e5 (patch)
treec7caddd7dba7afa7d0eae1d137535a8363ff6317 /dbaccess
parenttdf#96250 LOK: guard against 0 pRenderingArguments (diff)
downloadcore-291f55edf3d5c1d443cbd9a06bc6f7fd773884e5.tar.gz
core-291f55edf3d5c1d443cbd9a06bc6f7fd773884e5.zip
assert that no ODF import happens without a BaseURL
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index e25b714c03b6..777b779f2287 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -485,6 +485,7 @@ void ODatabaseDocument::impl_import_nolck_throw( const Reference< XComponentCont
OUString sBaseURI = _rResource.getOrDefault("BaseURI", OUString());
if (sBaseURI.isEmpty())
sBaseURI = _rResource.getOrDefault("URL",OUString());
+ assert(!sBaseURI.isEmpty()); // needed for relative URLs
xInfoSet->setPropertyValue("BaseURI", uno::makeAny(sBaseURI));
xInfoSet->setPropertyValue("StreamName", uno::makeAny(OUString("content.xml")));