summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-24 08:56:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-24 16:20:40 +0100
commit6e8d5b28c23c6930cb23d33ca182748e7faf54dc (patch)
treed762b0d5746fab8d55c1ead82622bb366fdbcf75 /bean
parentba5d6da97c8c7ed59592d47ab5cd495c79ef262d (diff)
cid#1473991 Dereference null return value
Change-Id: Id5aa369ac5edac5bb5d0c7adaadc4b6495b63750 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113023 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 3475447368e4..ca9442d58427 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -1405,7 +1405,10 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
iConnection.addEventListener( this );
// listen on a terminating OOo
- getOOoDesktop().addTerminateListener( this );
+ try {
+ getOOoDesktop().addTerminateListener( this );
+ }
+ catch ( Throwable aExc ) {}
// start this thread as a daemon
setDaemon( true );