summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-17 17:27:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-17 20:08:23 +0100
commit26960bad06fe26f5652faf42e20073bf7d201eeb (patch)
tree4c1b98adc300d95dd5c61d4101bb4b0b0e66d809 /bean
parent28da9177229a1d8b6d4a3ba3d84dea2166caae8d (diff)
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>
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeWindow.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
index 1efc99032594..2e04a00c7b42 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
@@ -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);