felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfre...@apache.org
Subject svn commit: r443359 - /incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
Date Thu, 14 Sep 2006 13:59:01 GMT
Author: sfrenot
Date: Thu Sep 14 06:59:00 2006
New Revision: 443359

URL: http://svn.apache.org/viewvc?view=rev&rev=443359
Log:
FELIX-142

Surrounding the unregistering function with a try/catch block. 


Modified:
    incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java

Modified: incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java?view=diff&rev=443359&r1=443358&r2=443359
==============================================================================
--- incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
(original)
+++ incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
Thu Sep 14 06:59:00 2006
@@ -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);
+     }
     }
   }
 



Mime
View raw message