https://bugs.freedesktop.org/show_bug.cgi?id=62155

--- Comment #26 from Stephan Bergmann <[email protected]> ---
(In reply to comment #25)
> I gave up hoping for a generic solution here; the calc addins code already
> handles failure:
> 
>             uno::Reference<uno::XInterface> xInterface(
> xServiceFactory->createInstance( aServiceName ) );
> 
>             if (xInterface.is())
>                 UpdateFromAddIn( xInterface, aServiceName );
> 
> I assume that some (new?) exception is thrown by createInstance these days
> that makes it unhappier than in the past; so I just ignore all UNO
> exceptions there; pushed to master, and gerrit for 4.1 / 4.2 =)

Yes, sure, createInstance can (somewhat unhelpfully) both throw any Exception
or return null to signal failure.  (Which makes it look like it would be better
to just cover the call to createInstance in a try-catch-ignore block, not also
the subsequent call to UpdateFromAddIn.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to