cid#1448230 Dereference null return value
Change-Id: I846959c2f92dc8078ad2ed8accb8f7be0f2833ce Reviewed-on: https://gerrit.libreoffice.org/83023 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -95,6 +95,8 @@ public class LocalOfficeWindow
|
||||
{
|
||||
// Create a UNO toolkit.
|
||||
XComponentContext xContext = mConnection.getComponentContext();
|
||||
if (xContext == null)
|
||||
throw new RuntimeException("no context");
|
||||
XMultiComponentFactory compfactory = xContext.getServiceManager();
|
||||
XMultiServiceFactory factory = UnoRuntime.queryInterface(
|
||||
XMultiServiceFactory.class, compfactory);
|
||||
|
||||
Reference in New Issue
Block a user