You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2009/04/22 18:06:58 UTC
svn commit: r767578 -
/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/plugins/PluginLoader.java
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