Fixes IllegalArgumentException if otr is disabled.

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

@ -428,7 +428,11 @@ public void stop(BundleContext bc) throws Exception
// Unregister transformation layer.
// start listening for newly register or removed protocol providers
bundleContext.removeServiceListener(this);
if(scOtrEngine != null)
bundleContext.removeServiceListener(scOtrEngine);
if(otrContactManager != null)
bundleContext.removeServiceListener(otrContactManager);
ServiceReference[] protocolProviderRefs;

Loading…
Cancel
Save