From 59002dff8a7e2bf82076324009637e221971d5cc Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Thu, 13 Sep 2007 13:06:50 +0000 Subject: [PATCH] IllegalStateException fixed --- .../sip/communicator/impl/systray/jdic/StatusSubMenu.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java b/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java index a89e316d5..8a0596f4b 100644 --- a/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java +++ b/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java @@ -171,6 +171,14 @@ private class ProtocolProviderServiceListener implements ServiceListener */ public void serviceChanged(ServiceEvent event) { + //if the event is caused by a bundle being stopped, we don't want to + //know + if(event.getServiceReference().getBundle().getState() + == Bundle.STOPPING) + { + return; + } + Object service = SystrayActivator.bundleContext .getService( event.getServiceReference());