From 079779c9244867cfcfb059ba57715af18b3a5bfc Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 24 Sep 2013 11:55:58 +0200 Subject: 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 --- embeddedobj/source/commonembedding/persistence.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'embeddedobj') 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 ); } -- cgit