Fixes IllegalArgumentException if otr is disabled.

fix-message-formatting
Damian Minkov 11 years ago
parent c515f9bd00
commit 256b6673f8

@ -428,8 +428,12 @@ public void stop(BundleContext bc) throws Exception
// 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

Loading…
Cancel
Save