cid#1448516 silence Dereference null return value

Change-Id: Ifb7e14183e97c225ed7e68f93e6142d10c4a87b0
Reviewed-on: https://gerrit.libreoffice.org/82991
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 0345d48..3475447 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -291,12 +291,16 @@ public class OOoBean
            // avoid concurrent access from multiple threads
            final OfficeConnection iConn = getOOoConnection();

            com.sun.star.uno.XComponentContext xComponentContext = iConn.getComponentContext();
            if (xComponentContext == null)
                throw new NoConnectionException();

            Thread aConnectorThread = new Thread("getServiceManager") {
                @Override
                public void run()
                {
                    com.sun.star.lang.XMultiComponentFactory aFactory =
                        iConn.getComponentContext().getServiceManager();
                        xComponentContext.getServiceManager();
                    xServiceFactory = UnoRuntime.queryInterface(
                        com.sun.star.lang.XMultiServiceFactory.class, aFactory );
                }