[jboss-cvs] JBossAS SVN: r70108 - projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/main.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 26 09:53:58 EST 2008


Author: alesj
Date: 2008-02-26 09:53:58 -0500 (Tue, 26 Feb 2008)
New Revision: 70108

Modified:
   projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java
Log:
Check that deployers exist.

Modified: projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java	2008-02-26 14:51:09 UTC (rev 70107)
+++ projects/microcontainer/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/main/MainDeployerImpl.java	2008-02-26 14:53:58 UTC (rev 70108)
@@ -497,6 +497,9 @@
 
    public void process()
    {
+      if (deployers == null)
+         throw new IllegalStateException("No deployers");
+
       lockRead();
       try
       {
@@ -506,9 +509,6 @@
          List<DeploymentContext> undeployContexts = null;
          List<DeploymentContext> deployContexts = null;
 
-         if (deployers == null)
-            throw new IllegalStateException("No deployers");
-
          if (undeploy.isEmpty() == false)
          {
             // Undeploy in reverse order (subdeployments first)
@@ -558,6 +558,9 @@
 
    public void change(String deploymentName, DeploymentStage stage) throws DeploymentException
    {
+      if (deployers == null)
+         throw new IllegalStateException("No deployers");
+
       lockRead();
       try
       {




More information about the jboss-cvs-commits mailing list