openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r767578 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java
Date Wed, 22 Apr 2009 16:06:58 GMT
Author: struberg
Date: Wed Apr 22 16:06:57 2009
New Revision: 767578

URL: http://svn.apache.org/viewvc?rev=767578&view=rev
Log:
make PluginLoader#shutDown more stable

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java?rev=767578&r1=767577&r2=767578&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java
Wed Apr 22 16:06:57 2009
@@ -75,8 +75,15 @@
     public void shutDown() throws WebBeansConfigurationException
     {
         logger.debug("PluginLoader shutDown called");
-        ArrayList<String> failedShutdown = new ArrayList<String>();
         
+        if (plugins == null)
+        {
+            logger.warn("No plugins to shutDown!");
+            return;
+        }
+
+        ArrayList<String> failedShutdown = new ArrayList<String>();
+
         for (OpenWebBeansPlugin plugin : plugins)
         {
             try 



Mime
View raw message