summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-09-24 11:55:58 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-09-24 22:03:02 +0200
commit079779c9244867cfcfb059ba57715af18b3a5bfc (patch)
tree2e989844770efde84cd20ba63e4a54ef2b950038 /embeddedobj
parent0304f90cfc54086c3d0860ad91102fc044d1ae30 (diff)
embeddedobj: if the service is missing, log its name
Related to https://gerrit.libreoffice.org/6019, so we can find out the name of the missing component. Change-Id: I1a006403def0b29f7391449a9b6124df40446851
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 128a5eb3060f..4e161a886756 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -211,6 +211,7 @@ static uno::Reference< util::XCloseable > CreateDocument( const uno::Reference<
xDocument = _rxContext->getServiceManager()->createInstanceWithContext( _rDocumentServiceName, _rxContext );
}
+ SAL_WARN_IF(!xDocument.is(), "embeddedobj.common", "Service " << _rDocumentServiceName << " is not available?");
return uno::Reference< util::XCloseable >( xDocument, uno::UNO_QUERY );
}