commit | 6ccfac57668a6d5a19a8d48449146c79af82f961 | [log] [tgz] |
---|---|---|
author | Stephane Frenot <sfrenot@apache.org> | Thu Sep 14 13:59:00 2006 +0000 |
committer | Stephane Frenot <sfrenot@apache.org> | Thu Sep 14 13:59:00 2006 +0000 |
tree | 06a59ce89892dfafcf2cc6f54b8825ec6bde2459 | |
parent | 168ab571588529d7c2a520529eee0ca68a94207e [diff] |
FELIX-142 Surrounding the unregistering function with a try/catch block. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@443359 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java b/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java index 281fdae..e70cc77 100644 --- a/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java +++ b/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
@@ -186,7 +186,12 @@ private void clean(){ this.removeAll(); for ( Iterator i=pluginList.keySet().iterator(); i.hasNext();) { - ((Plugin) pluginList.get(i.next())).unregisterServicePlugin(); + Object o=i.next(); + try { + ((Plugin) pluginList.get(o)).unregisterServicePlugin(); + }catch(Exception e){ + System.out.println("INFO Something went wrong when unregistering the Plugin. Please control the beavior of the unregisterServicePlugin function of this tab"+o); + } } }