[jboss-cvs] JBossAS SVN: r86048 - projects/webbeans-ri-int/trunk/microcontainer/src/main/java/org/jboss/webbeans/integration/microcontainer/deployer.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 18 10:10:58 EDT 2009


Author: alesj
Date: 2009-03-18 10:10:58 -0400 (Wed, 18 Mar 2009)
New Revision: 86048

Modified:
   projects/webbeans-ri-int/trunk/microcontainer/src/main/java/org/jboss/webbeans/integration/microcontainer/deployer/DeployersUtils.java
Log:
Check for null.

Modified: projects/webbeans-ri-int/trunk/microcontainer/src/main/java/org/jboss/webbeans/integration/microcontainer/deployer/DeployersUtils.java
===================================================================
--- projects/webbeans-ri-int/trunk/microcontainer/src/main/java/org/jboss/webbeans/integration/microcontainer/deployer/DeployersUtils.java	2009-03-18 14:10:44 UTC (rev 86047)
+++ projects/webbeans-ri-int/trunk/microcontainer/src/main/java/org/jboss/webbeans/integration/microcontainer/deployer/DeployersUtils.java	2009-03-18 14:10:58 UTC (rev 86048)
@@ -51,6 +51,9 @@
     */
    public static String getBootstrapBeanName(DeploymentUnit unit)
    {
+      if (unit == null)
+         throw new IllegalArgumentException("Null deployment unit");
+
       DeploymentUnit top = unit.getTopLevel();
       return top.getName() + WEB_BEANS_BOOTSTRAP_BEAN;
    }
@@ -64,6 +67,9 @@
     */
    public static boolean checkForWebBeansFiles(DeploymentUnit unit)
    {
+      if (unit == null)
+         throw new IllegalArgumentException("Null deployment unit");
+
       DeploymentUnit top = unit.getTopLevel();
 
       Boolean flag = top.getAttachment(WEB_BEANS_DEPLOYMENT_FLAG, Boolean.class);




More information about the jboss-cvs-commits mailing list