aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2014-07-10 17:52:39 +0300
committerDamian Minkov <damencho@jitsi.org>2014-07-10 17:52:39 +0300
commit256b6673f8e33ac400a07c021223c497cf849fb5 (patch)
tree0a5082113a9a75f498afb826cb157ca5cb3c517c /src
parentc515f9bd00bfa10396a5f1cd9a8cb3d92a354b41 (diff)
downloadjitsi-256b6673f8e33ac400a07c021223c497cf849fb5.zip
jitsi-256b6673f8e33ac400a07c021223c497cf849fb5.tar.gz
jitsi-256b6673f8e33ac400a07c021223c497cf849fb5.tar.bz2
Fixes IllegalArgumentException if otr is disabled.
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/plugin/otr/OtrActivator.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/plugin/otr/OtrActivator.java b/src/net/java/sip/communicator/plugin/otr/OtrActivator.java
index e69d9cf..6908778 100644
--- a/src/net/java/sip/communicator/plugin/otr/OtrActivator.java
+++ b/src/net/java/sip/communicator/plugin/otr/OtrActivator.java
@@ -428,8 +428,12 @@ public class OtrActivator
// Unregister transformation layer.
// start listening for newly register or removed protocol providers
bundleContext.removeServiceListener(this);
- bundleContext.removeServiceListener(scOtrEngine);
- bundleContext.removeServiceListener(otrContactManager);
+
+ if(scOtrEngine != null)
+ bundleContext.removeServiceListener(scOtrEngine);
+
+ if(otrContactManager != null)
+ bundleContext.removeServiceListener(otrContactManager);
ServiceReference[] protocolProviderRefs;
try